Reverse of -crop

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
vvaz
Posts: 4
Joined: 2011-12-21T05:17:14-07:00
Authentication code: 8675308

Reverse of -crop

Post by vvaz »

Hello,

I have a big set of images in various sizes and I want to get only bottom 45 pixels I can easily get rid of this row with
mogrify -crop +0-45 +repage *.tif

But how to get rid of *rest* of image and retain only those bottom 45px???

TIA

v.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Reverse of -crop

Post by fmw42 »

try

mogrify -gravity south -crop x45+0+0 +repage *.tif
vvaz
Posts: 4
Joined: 2011-12-21T05:17:14-07:00
Authentication code: 8675308

Re: Reverse of -crop

Post by vvaz »

Thank you very much. I don't know why I didn't try this.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Reverse of -crop

Post by anthony »

For all forms of cropping see
http://www.imagemagick.org/Usage/crop/
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply