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

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
bensto
Posts: 31
Joined: 2012-07-02T00:32:10-07:00
Authentication code: 13

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

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

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

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