Page 1 of 1

crop to 1000*1200 px image non homothetic

Posted: 2019-10-18T05:42:26-07:00
by ChristianK
Hi,
I'm looking to find a way to do this if it's possible :
- Have a lot of images with different dimension, and have to modify their dimensions to Magento with specific dimensions : 1000*1600 px.

Sometimes images are homothetic, so no problem, but others could be no-homothetic : can I do something to change dimension without anamorphose trouble by cropping image by the center for example ?

Thnaks for your help !

Re: crop to 1000*1200 px image non homothetic

Posted: 2019-10-18T06:29:03-07:00
by snibgo
I'm not sure what you mean. Perhaps: some images have the same aspect ratio as 1000:1600. but some don't.

You can "-resize 1000x1600" to keep the aspect unchanged, or "-resize 1000x1600!" to make the result exactly that size. See http://www.imagemagick.org/script/comma ... p#geometry for other options.