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
Tiles to GIF
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: Tiles to GIF
-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
See IM Examples Cutting and Bordering, Tile Cropping.
http://www.imagemagick.org/Usage/crop /#crop_tile
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/
Re: Tiles to GIF
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.
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.
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: Tiles to GIF
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
If you wan then as seperate files add +adjoin to the command
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/