|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-07-12 09:28 UTC] mkoppanen@php.net
[2010-07-12 12:49 UTC] mb at lunetics dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 13:00:01 2025 UTC |
Description: ------------ using: libpng 1.4.1 ImageMagick 6.6.1.10 Command Line 'identify' works as expected: identify png1.png png1.png PNG 800x415 800x415+0+0 8-bit DirectClass 146KB 0.008u 0:00.046 As soon as i want to read a PNG image, php reports "corrupt image" Reproduce code: --------------- php -r 'ini_set('display_errors', true);$im = new Imagick(); $im->readImage("png1.png"); var_dump($im->getImageFormat());' Actual result: -------------- Fatal error: Uncaught exception 'ImagickException' with message 'corrupt image `/var/tmp/magick-pcDhdcxq' @ error/png.c/ReadPNGImage/3052' in Command line code:1 Stack trace: #0 Command line code(1): Imagick->readimage('png1.png') #1 {main} thrown in Command line code on line 1