Page 1 of 1

Tiles to GIF

Posted: 2009-04-08T21:13:28-07:00
by Sass
I have a 960x192 PNG image with 80 48x48 px icons on it. I need to convert it into a 48x48 px animated GIF image. Can someone point me to a thread that shows this command syntax or give me an example?

Thanks

Re: Tiles to GIF

Posted: 2009-04-08T22:39:35-07:00
by anthony
-crop 48x48 then set delay using -set delay 30 and save to GIF.

See IM Examples Cutting and Bordering, Tile Cropping.
http://www.imagemagick.org/Usage/crop /#crop_tile

Re: Tiles to GIF

Posted: 2009-04-09T10:11:31-07:00
by Sass
ok, i tried this:

convert myimage.png -crop 48x48 -repage 48x48 myimage.gif

The result is a 48x48 pixel image of the first icon - sometimes it flickers. Not desired. I am missing some syntax to make the next icon replace the previous icon to create the animation effect.

Re: Tiles to GIF

Posted: 2009-04-10T22:13:35-07:00
by anthony
The GIF should contain ALL the 48x48 images, do an identify on it.

If you wan then as seperate files add +adjoin to the command