Friday, June 1, 2012

Resize gifs through the command line using imagemagick

Found another nice tool that is able to integrate with php and can be used from the command line.

WAs able to resize a gif animation with it.

To install, download the windows binary from http://www.imagemagick.org/script/binary-releases.php

Taken from http://stackoverflow.com/questions/718491/resize-animated-gif-file-without-destroying-animation

Open command prompt and do these commands:


convert big.gif -coalesce coalesce.gif
convert -size 200x100 coalesce.gif -resize 200x10 small.gif


No comments:

Post a Comment