Jump to content

How to resize GIF animation


Absorbator

Recommended Posts

Yeah, I heard it is possible, never done it though,

 

http://wiki.flux-cms.org/display/BLOG/Resizing+animated+GIFs+with+ImageMagick

 

I am not familiar with this library (http://us3.php.net/imagick), so you'll be more than welcome to share your results.

 

Angel

Here was my code:

<?php
shell_exec("/usr/bin/convert ~/dudeel.com/images/l_sonic.gif -coalesce -resize 50% ~/dudeel.com/images/s_sonic.gif");
?>

 

Here is my out put:

Large: http://dudeel.com/images/l_sonic.gif

50% re-size: http://dudeel.com/images/s_sonic.gif

Nice!, but...

 

/usr/bin/convert 

 

Is this an ImageMagick binary file? or just a shell script? also I wonder how to get it done through  PHP's support for this library (if the functions in PHP[http://us3.php.net/imagick] are close to the binaries), I''ll guess I'll try it myself.

 

Nice result though.

 

Angel

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.