need help with simple cropping and saving out images

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
supercali
Posts: 2
Joined: 2011-06-23T09:52:23-07:00
Authentication code: 8675308

need help with simple cropping and saving out images

Post by supercali »

can someone show me what to do for this task?

I am looking over this program first time and I cant tell what I should do
repaige shave crop? Almost two many options so I cant tell what i need.

I just have an image called image.bmp that is 512x 512 and I want it chopped/divided and saved in 4 pieces 256x256 that are named 1.bmp, 2.bmp, 3.bmp, and 4.bmp as though reading from left to right.
How might I do this in one command line.
thanks for any help.
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: need help with simple cropping and saving out images

Post by Bonzo »

Try:

Code: Select all

convert image.bmp -crop 256x256 %d.bmp
supercali
Posts: 2
Joined: 2011-06-23T09:52:23-07:00
Authentication code: 8675308

Re: need help with simple cropping and saving out images

Post by supercali »

works great.
thanks
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: need help with simple cropping and saving out images

Post by anthony »

Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply