Page 1 of 1

Using convert to split images into multiple files

Posted: 2010-03-14T15:50:13-07:00
by imagecorpis
Could some expert ImageMagick user give me a help?

I have a large 256x256 bitmap I want to convert into 32x32 textures (8 horizontal, 8 vertical). Is there any way to set convert to "crop" specific parts of the bitmap ? Do I need 16 separate convert commands to do that? If so, what would be the basic parameters?

Thanks in advance,

Re: Using convert to split images into multiple files

Posted: 2010-03-14T16:01:35-07:00
by magick
Try this command:
  • convert image.png -crop 32x32 parts-%02d.png

Re: Using convert to split images into multiple files

Posted: 2010-03-14T16:19:15-07:00
by imagecorpis
Wow, that's much easier than I thought!

Thanks for such an awesome tool!