Author Topic: ImageMagick thumbnails lose animation  (Read 2930 times)

0 Members and 1 Guest are viewing this topic.

Offline babe

  • Jr. Member
  • **
  • Posts: 63
    • View Profile
ImageMagick thumbnails lose animation
« on: September 19, 2008, 01:46:12 PM »
Any idea why my ImageMagick-resized animated GIFs lose their animation? They become static thumbnails.

(Current latest version of ImageMagick installed).

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: ImageMagick thumbnails lose animation
« Reply #1 on: September 19, 2008, 04:17:26 PM »
In includes/image_utils.php find:
function resize_image_im($src$dest$quality$width$height$image_info) {
  global 
$convert_options;

Insert BELOW
  if ($image_info[2] == 1)
  {
    
$command $convert_options['convert_path']." ".$src." -coalesce ".$dest;
    
system($command);
    if (
file_exists($dest)) $src $dest;
    
  }


Tested on windows server.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline babe

  • Jr. Member
  • **
  • Posts: 63
    • View Profile
Re: ImageMagick thumbnails lose animation
« Reply #2 on: September 19, 2008, 05:15:35 PM »
V@no, as usual, you the man. Thanks!