4images Forum & Community

4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started by: babe on September 19, 2008, 01:46:12 PM

Title: ImageMagick thumbnails lose animation
Post by: babe 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).
Title: Re: ImageMagick thumbnails lose animation
Post by: V@no 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.
Title: Re: ImageMagick thumbnails lose animation
Post by: babe on September 19, 2008, 05:15:35 PM
V@no, as usual, you the man. Thanks!