|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2016-01-26 13:51 UTC] lee dot traynor at skeptic dot de
Description: ------------ --- From manual page: http://www.php.net/imagick.evaluateimage --- Imagemagick's -evaluate-sequence operator takes a sequence of images, applies various statistical functions (mean, maximum, minimum, median) to them and returns a new image with those values. The documentation says it will take all the arguments that -evaluate takes, but that does not make any sense. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 07 08:00:02 2025 UTC |
Thanks. The new function evaluateImages works very similarly to -evaluate-sequence and takes the EVALUATE_ constants. The following code has been tested with a couple of the constants to give identical results to imagemagick on the command line: $im = new Imagick (realpath ("Waikare_E.jpg")); $im->addImage (new Imagick (realpath ("Waikare_O.jpg"))); $im = $im->evaluateImages (imagick::EVALUATE_MAX); $im->writeImage (getcwd (). "/test.jpg"); echo "<img src=\"test.jpg\">"; // compare with convert waikare_*.jpg -evaluate-sequence max evalseqtest.jpg Still, don't know why anyone would use the log, power, sine or cosine constants, but I suppose that's imagemagick's problem.