PHP Classes

Failed to resize transparent animated gifs

Recommend this page to a friend!

      GIF Animation Resizer  >  All threads  >  Failed to resize transparent...  >  (Un) Subscribe thread alerts  
Subject:Failed to resize transparent...
Summary:Failed to resize transparent animated gifs
Messages:2
Author:Virtual
Date:2015-06-18 06:53:37
 

  1. Failed to resize transparent...   Reply   Report abuse  
Picture of Virtual Virtual - 2015-06-18 06:53:37
When a frame is an empty transparent background the class detects its width/height as 0/0 on line 495:
$src = imagecreatefromgif($img);
$sw = $this->imagedata[$k]["width"];
$sh = $this->imagedata[$k]["height"];

The sample gif is here
giphy.com/gifs/cartoonhangover-cart ...

  2. Re: Failed to resize transparent...   Reply   Report abuse  
Picture of Taha Paksu Taha Paksu - 2015-06-18 07:19:20 - In reply to message 1 from Virtual
This is the correct behaviour I guess.