Forum
Perch Images, and Resizing/Cropping
Hey,
One thing that always has bothered us, is when creating a thumbnail, (say a 250x250), and the original image is a different ratio (say 16:9), it'll resize the width, and not always make a square thumbnail...
I really think it should look at width AND height, to make sure the thumbnail created is 250x250 where possible.
Thanks!
You need to set
crop="true"
otherwise Perch will resize the image to fit inside a bounding box of the dimensions you specify.We do, but it'll resize the image, to the width, then crop, rather than trying to fill the full 250x250, if that makes sense?
Could you give an example?
I am struggling with the same thing. I want the output images to all have the same aspect ratio (square) but when the user uploads an image which is wider than it is tall I dont want to crop in on the image, I want to resize the image but retain the square aspect ratio...so have letterbox bars on the top and bottom...
Same for a taller image, so letterbox bars on the sides.
Any way to do this within perch?