Crop 4 edges with single command ?

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
iamahkit
Posts: 1
Joined: 2011-03-22T00:51:19-07:00
Authentication code: 8675308

Crop 4 edges with single command ?

Post by iamahkit »

Now, I need to input 2 commands line to fulfill my need:
1) -crop +100+130 +repage
2) -crop -100-130 +repage

It works, but looks like not smart.

Can it done by single command line only?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Crop 4 edges with single command ?

Post by fmw42 »

just put both commands in the same command line. but I don't understand your crop commands as they usually need WxH+X+Y and I have never seen it used with just +X+Y?

perhaps you can provide your complete command lines and a link to an example of what you need to do

by the way, you may want to take a look at -shave and -chop at
http://www.imagemagick.org/Usage/crop/#shave
http://www.imagemagick.org/Usage/crop/#chop
Post Reply