|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2013-07-19 17:14 UTC] imprec at gmail dot com
Description: ------------ Gmagick::writeimage documentation (http://php.net/manual/en/gmagick.writeimage.php) says filename is optional. It should work without a filename if Gmagick::setimagefilename has been called. it actually throws an exception if the filename is set to null. Calling the method withtout argument triggers a warning (Gmagick::writeimage() expects at least 1 parameter, 0 given) Imagick provides the same thing, see http://fr2.php.net/manual/en/imagick.writeimage.php Test script: --------------- $gmagick = new Gmagick('duck.jpg'); $gmagick->writeimage(); or $gmagick = new Gmagick('duck.jpg'); $gmagick->writeimage(null); PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 10:00:01 2025 UTC |
Even the following code throws an exception. $image = new Gmagick(); $image->readImage("2301_04215826.png"); $image->writeImage();