1

I can't seem to figure out how get ImageCache to resize an image based on the longest side.

Desired behaviour:

upload image 800x532 --> resize image to 400x266 (landscape)
upload image 532x800 --> resize image to 266x400 (portrait)

Is this possible with ImageCache? If not, how can I achieve this? Aspect ratio must be preserved.

1
  • 1
    instead of answering your question with a comment, post an answer and mark it accepted once the allotted time has passed.
    – Laxman13
    Jul 12 '11 at 15:30
1

To follow up on this question; ImageCache Actions now offers a feature called Aspect Switcher which allows for different image styles based on the original images aspect ratio, if it's portrait or landscape.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.