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.

Getting crop to work in ED Imageresizer ?

November 10, 2010 2:59pm

Subscribe [1]
  • #1 / Nov 10, 2010 2:59pm

    Deeper

    215 posts

    Image Sizer seems to have died on me for some reason, so I’ve had to switch to ED Imageresizer . It seems to work OK but I am having problems with the crop feature. I want it to crop an image to a specific size so I have the code as

    {exp:ed_imageresizer image="{news_image}" maxWidth="220" maxHeight="330" cropratio="1:2" class="staticImage" alt="{title}"}

    But this spits out an image with these dimensions

    /images/test.jpg

    I’m not entirely sure how to use that crop ration parameter, 1:1 seemed to be a square so I went with 1:2. Maybe that’s the problem? I just want it to crop to my maxWidth/maxHeight!

    Thanks for any help

  • #2 / Nov 10, 2010 3:09pm

    Deeper

    215 posts

    Fixed! This did the trick. Still not entirely sure what it’s doing though.

    cropratio="2:3"
.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases