PHP 5.2.11
# httpd -version
Server version: Apache/2.2.14 (Unix)
Server built: Oct 27 2009 16:32:50
Cpanel::Easy::Apache v3.2.0 rev4801
`man libpng' identifies itself as:
libpng - Portable Network Graphics (PNG) Reference Library 1.2.10
From phpinfo():
imagick module version
- 2.2.2
- ImageMagick 6.6.6-5 2010-12-14 Q16 http://www.imagemagick.org
As explained at the above link, the following script consistently segfaults if this image is saved in the same directory and named original.png. If the image data is retrieved via getImageBlob, duplicate.png is a proper copy of original.png; otherwise, it is empty. The test case is to be run via php -f test.php:
Code: Select all
<?php
$thumb = new Imagick('original.png');
$thumb->setImageFormat('png');
//echo $thumb->getImageBlob();
$thumb->writeImage('duplicate.png');
?>