php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59459 frames order error when create gif animation
Submitted: 2010-10-13 10:43 UTC Modified: 2012-07-31 06:55 UTC
From: hi dot laowang at gmail dot com Assigned: vitoc (profile)
Status: Closed Package: gmagick (PECL)
PHP Version: 5.3.2 OS: linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: hi dot laowang at gmail dot com
New email:
PHP Version: OS:

 

 [2010-10-13 10:43 UTC] hi dot laowang at gmail dot com
Description:
------------
I want to create a two frames gif,frames order error


Reproduce code:
---------------
<?php

$img = new Gmagick('1.gif');

$img->setImageDelay(100);

$img->nextImage();

$img->addImage(new Gmagick('2.gif'));

$img->setImageDelay(100);

$img->writeimage('foo.gif');
?>

Expected result:
----------------
first frame: 1.gif
second frame: 2.gif

Actual result:
--------------
first frame: 2.gif
second frame: 1.gif

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-07-31 06:55 UTC] vito@php.net
-Status: Assigned +Status: Closed
 [2012-07-31 06:55 UTC] vito@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

Hi,

The images are added according to the magick_wand interface:

unsigned int MagickAddImage( MagickWand *wand, const MagickWand *add_wand );

see:

http://www.graphicsmagick.org/wand/magick_wand.html#magickaddimage
	status = MagickAddImage(intern->magick_wand, intern_add->magick_wand);

The order in which images are written is determined by magick_wand.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 13:01:31 2024 UTC