crop to 1000*1200 px image non homothetic

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
ChristianK
Posts: 10
Joined: 2019-03-04T08:44:14-07:00
Authentication code: 1152

crop to 1000*1200 px image non homothetic

Post 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 !
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: crop to 1000*1200 px image non homothetic

Post 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.
snibgo's IM pages: im.snibgo.com
Post Reply