outputThumbnail Maximum Height & Width
Permalink
Hello,
I have a custom block that lets the user select an image file from the asset library. When I output the image in my view I'm using the outputThumbnail method to dump out the HTML for the image.
Now I'm setting a maximum width of 150 and height of 250. So I'm expecting that if the user has a REALLY tall image it'll be constrained to fit inside a box of 150px by 250px. But with some images it seems to ignore the max width and only follow the max height measurement. Is this a bug? Are other people experiencing this?
Thanks,
Martin
I have a custom block that lets the user select an image file from the asset library. When I output the image in my view I'm using the outputThumbnail method to dump out the HTML for the image.
Now I'm setting a maximum width of 150 and height of 250. So I'm expecting that if the user has a REALLY tall image it'll be constrained to fit inside a box of 150px by 250px. But with some images it seems to ignore the max width and only follow the max height measurement. Is this a bug? Are other people experiencing this?
Thanks,
Martin