I can't seem to figure out how get ImageCache to resize an image based on the longest side.
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.