ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Media resizer

January 13, 2011 11:19am

Subscribe [1]
  • #1 / Jan 13, 2011 11:19am

    Electric Putty

    88 posts

    The problem:
    You’ve got a client who wants to add video clips to their web pages. They are grabbing clips from all over the place; YouTube, Vimeo, Flickr. You’ve designed a beautiful template with space to accommodate a clip of a certain size. Your client adds an enormous, wide-screen movie and your template explodes.

    The solution:
    Electric Putty’s beautifully simple Media Resizer plug-in, available for both EE1.x and EE2.x. Simple wrap your output in the plug-in tag and it will resize any embedded media to the desired size. E.g.

    {exp:ep_media_resizer width="550"}YOUR MEDIA EMBED CODE HERE{/exp:ep_media_resizer}

    Parms:
    ‘height’ The desired height of the media object - if not specified the new height will be calculated automatically from the desired width
    ‘width’ The desired width of the media object - if not specified the new width will be calculated automatically from the desired height

    NOTE: If neither height or width params are set the object will be returned at its original size

    Visit our new Electric Labs website for more information and to download free of charge.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases