|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2012-03-15 17:08 UTC] spam at ethaniel dot com
Description:
------------
I resize millions of images per day.
My logs are loaded with the "php5-cgi: no decode delegate for this image format
`/tmp/magick-XXqc94Zw' @ error/constitute.c/ReadImage/533".
I was trying to catch this error with "try { $img->readImageFile($fp); } catch
(Exception $e) {}", however it still gets into the logs.
Any way to disable this error from getting into the logs?
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 03:00:01 2025 UTC |
This issue is not reproducible on PHP 5.6.2 with the latest (3.2.0RC1) version of Imagick and the latest version of ImageMagick (6.9.9-0). i.e. for the code: try { $fp = fopen("./foo.txt", "r"); $img = new \Imagick(); $img->readImageFile($fp); } catch(\Exception $e) { echo "Exception caught ".$e->getMessage(); } An exception is sent to the browser, but no error message is sent to a log file. If this is still an issue with the latest version of Imagick, please can you specify how your server is setup, i.e. nginx/apache and some reproduction code that shows the error happening.