Page 1 of 1

How to crop a *.png picture to height 9000pixel ?

Posted: 2016-07-10T23:15:29-07:00
by bensto
Assume I have a very, very height *.png picture with a height of e.g. 32000 pixels.

How can I crop the picture with ImageMagick command to a height of e.g. 9000 pixel ?

The width should remain as it is.

Re: How to crop a *.png picture to height 9000pixel ?

Posted: 2016-07-11T00:40:46-07:00
by snibgo
You would use the "-crop" command. See http://www.imagemagick.org/script/comma ... s.php#crop . For example:

Code: Select all

convert in.png -crop x9000+0+0 +repage out.png