erskinedesign / ed.imageresizer.ee2_addon

EE2+ Version of the ED ImageResizer. Resizes, crops and caches images on the fly.
43 stars 12 forks source link

Forcing width problem #4

Closed howells closed 14 years ago

howells commented 14 years ago

Hi - not sure if I am doing this right, but essentially I need to have my images exactly 470px wide, however:

{exp:ed_imageresizer image="{image}" maxWidth="470" forceWidth="470" alt="{caption}"}

doesn't work as expected: if you look here http://creativejournal.com/P10 you'll see that some of the images are less then 470px wide. If I change the statement to:

{exp:ed_imageresizer image="{image}" forceWidth="470" alt="{caption}"}

the images appear really large.

What am I doing wrong here?

linssen commented 14 years ago

The force width and height parameters actually use a 'yes' or 'no' value: no is the default. So the usage would be:

{exp:ed_imageresizer
  image="{image}"
  maxWidth="470"
  forceWidth="yes"
  alt="{caption}"
}

Hope that helps.

howells commented 14 years ago

...I'll go back into my box now. Sorry for wasting your time!!