I have many images with arbitrary heights and widths ( 2033×1957, 1560X980, …).
When i use sorl-thumbnail for these images in order to resize them to be 160×160 i don’t get these exact sizes. I get images with sizes like 160×120, 120×160…
Is there a constrain proportion option(like in photoshop) in sorl-thumbnail in order to get the exact 160×160 size?
I have many images with arbitrary heights and widths ( 2033×1957, 1560X980, …). When
Share
you can use the
cropoption. this will use as much as possible of the source image and cut off slices at the sides to match the exact resolution you want while not stretching the image.see http://thumbnail.sorl.net/examples.html for more examples and optional parameters to
crop