From: <ny...@us...> - 2008-10-08 13:34:19
|
Revision: 15041 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=15041&view=rev Author: nyloth Date: 2008-10-08 13:34:07 +0000 (Wed, 08 Oct 2008) Log Message: ----------- [FIX] : fix pb with imagemagick and bad image data... Modified Paths: -------------- trunk/lib/images/imagick_old.php Modified: trunk/lib/images/imagick_old.php =================================================================== --- trunk/lib/images/imagick_old.php 2008-10-08 13:29:40 UTC (rev 15040) +++ trunk/lib/images/imagick_old.php 2008-10-08 13:34:07 UTC (rev 15041) @@ -12,6 +12,9 @@ parent::__construct($image, false); $this->data = imagick_blob2image($image); } + if (($t = imagick_failedreason($this->data))) { + $this->data = NULL; + } } function Image($image, $isfile = false) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |