Created attachment 163235 [details] patch - Add support for MagickStatisticImage() (reference http://www.imagemagick.org/discourse-server/viewtopic.php?f=10&t=22757). - Fixes build with newer ImageMagick - Fixes build when ImageMagick is installed in non-standard location - Add support for MagickSetImageEndian(). - MagickWand for PHP no longer fails to build in ZTS mode.
This builds and works in basic testing on amd64 and PHP 5.6. > pkg info | grep magickw php-magickwand-1.0.9_4 PHP extension to manipulate images > pkg info | grep Image ImageMagick-6.9.2.4,1 Image processing tools Test was: <?php $w=NewMagickWand(); MagickSetResolution($w,200,200); MagickReadImage($w,'logo-red.png'); if (MagickGetImageWidth($w) > 1000) { $height=1000*MagickGetImageHeight($w)/MagickGetImageWidth($w); MagickResizeImage($w,1000,$height,MW_QuadraticFilter,1.0); } MagickSetImageFormat($w,'jpg'); $out=MagickWriteImage($w,'blob.jpg'); ?> Many thanks for the quick fix; not sure if you need any more information?
A commit references this bug: Author: pi Date: Tue Nov 17 08:51:03 UTC 2015 New revision: 401803 URL: https://svnweb.freebsd.org/changeset/ports/401803 Log: graphics/php-magickwand: unbreak, update 1.0.9 -> 1.0.9-2 - Add support for MagickStatisticImage() (reference http://www.imagemagick.org/discourse-server/viewtopic.php?f=10&t=22757). - Fixes build with newer ImageMagick - Fixes build when ImageMagick is installed in non-standard location - Add support for MagickSetImageEndian(). - MagickWand for PHP no longer fails to build in ZTS mode. PR: 204620 Reviewed by: Richard Toohey <knightofthecode@gmail.com> Changes: head/graphics/php-magickwand/Makefile head/graphics/php-magickwand/distinfo
Committed, thanks for testing.