|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-05-10 21:07 UTC] me at benlake dot org
[2008-05-10 21:10 UTC] me at benlake dot org
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 21:00:01 2025 UTC |
Description: ------------ I am running PHP 5.2.6 BTW, it wasn't listed. imagick imagick module => enabled imagick module version => 2.1.1 imagick classes => Imagick, ImagickDraw, ImagickPixel, ImagickPixelIterator imagick.locale_fix => 0 => 0 Used getFilename as illustrated below and didn't get what I was expecting, which is the name of the file represented by the current wand. If I am using this incorrectly then I suppose the only means of knowing which file is being worked on would be to instantiate an Imagick object for each file and not use the convenient batching method supported by the constructor and employed in the examples on php.net. Reproduce code: --------------- $magick = new Imagick(glob(PATH.'*.{jpg,JPG}', GLOB_BRACE)); foreach ($magick as $img) { print $img->getFilename()."\n"; $img->thumbnailImage(150,0); $img->writeImage(); } Expected result: ---------------- <filename> <filename> <filename> Actual result: -------------- <empty string> <empty string> <empty string>