1. libgd
  2. Untitled project
  3. gd-libgd

Issues

Issue #80 resolved

GIF image: imagecreatefromgif/imagecreatefromstring use the width and height from image-descriptor instead of logical-screen-descriptor

eatnut
created an issue

Recently I wrote a code that can split animated GIF image to several frame-images.

The output images has the same logical screen descriptor/global color table, and their own graphics control extension/image descriptor/local color table/image data.

The code works great, but when I use imagecreatefromgif/imagecreatefromstring to open each frame-image, they lost the logical screen width/logical screen height, also the position on logical screen, their width and height become the dimension from image descriptor.

I'm using GD 2.0, haven't tested on 2.1 yet.

I'm just wondering whether it is a bug or not, if GD intend to do like this, I can just write very few codes to fix this.

Thanks!

Comments (3)

  1. Pierre Joye

    PHP does not support animated GIF yet, while libgd does. It is planed for php 5.6 and via a pecl release for previous releases (sometimes around around October-November this year max)

  2. Log in to comment