|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patchesphp (last revision 2020-11-16 08:43 UTC by 920768504 at qq dot com)Pull RequestsHistoryAllCommentsChangesGit/SVN commits
[2020-11-16 08:43 UTC] 920768504 at qq dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 11:00:01 2025 UTC |
Description: ------------ When using addImage, then behavior depends on the number of frames already in the gmagick instance : When using the following code : class layers { private $gmagick; public function __construct(Gmagick $gmagick) { $this->gmagick = $gmagick; } function set($offset, $frame) { $this->gmagick->setimageindex($offset); // tricky workaround for https://bugs.php.net/bug.php?id=62309 $this->gmagick->nextimage(); $this->gmagick->addimage($frame); } } If the gmagick object contains only one frame at the beginning, the frame is inserted BEFORE the existing frame, otherwise it is inserted after