Another basic question

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
saucedog
Posts: 8
Joined: 2014-08-27T05:48:59-07:00
Authentication code: 6789

Another basic question

Post by saucedog »

I'm back with another (basic) question.

How would I accomplish this against all images in a directory?

Image

I think I can crop and then chop the original image, save the cropped part as a second image, and then use -append to join them again. But I was wondering if there's an easier way... perhaps without ever saving the cropped area as second image?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Another basic question

Post by fmw42 »

It is not clear what you want to do. Please clarify or show a better example. What are starting with and what do you want it to be at the end?

For processing of multiple images in a given directory, see mogrify
http://www.imagemagick.org/Usage/basics/#mogrify

Also it is always best to provide your IM version and platform, since syntax may be different.
saucedog
Posts: 8
Joined: 2014-08-27T05:48:59-07:00
Authentication code: 6789

Re: Another basic question

Post by saucedog »

Thanks for the quick response.

I want to remove the upper portion of an image (let's say 100x20) and put it at the bottom while keeping the same original dimensions. If I can apply the change to all images at the same time, all the better. But I'm really just curious what the best way is to translate/move any area from the top of an image to the bottom.

Thanks!

v6.7.0-3 Q16 (yes I know it's old!)
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Another basic question

Post by fmw42 »

saucedog
Posts: 8
Joined: 2014-08-27T05:48:59-07:00
Authentication code: 6789

Re: Another basic question

Post by saucedog »

Thanks! That's exactly it.
Post Reply