php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59385 getNumberImages can't get right value in gif animated picture
Submitted: 2010-08-25 03:42 UTC Modified: 2010-09-12 04:23 UTC
From: hi dot laowang at gmail dot com Assigned:
Status: Closed Package: gmagick (PECL)
PHP Version: 5.3.2 OS: linux
Private report: No CVE-ID: None
 [2010-08-25 03:42 UTC] hi dot laowang at gmail dot com
Description:
------------
when I use Blob to process gif animated picture (for example: 2 frames), getNumberImages can't get right value

Reproduce code:
---------------
$file = '/path/to/animated/gif/picutre';

$foo = new Gmagick($file);

var_dump($foo->getNumberImages());

$bar = new Gmagick();

$bar->readImageBlob($foo->getImageBlob());

var_dump($bar->getNumberImages());

Expected result:
----------------
int(2)
int(2)

Actual result:
--------------
int(2)
int(1)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-09-12 04:23 UTC] vito@php.net
Thank you for your bug report. This issue has been fixed
in the latest released version of the package, which you can download at
http://pecl.php.net/get/gmagick


 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Mon Apr 22 16:01:25 2019 UTC