diff --git a/e107_handlers/resize_handler.php b/e107_handlers/resize_handler.php
index 5dd9db778..5bb8d9d88 100644
--- a/e107_handlers/resize_handler.php
+++ b/e107_handlers/resize_handler.php
@@ -11,8 +11,8 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_handlers/resize_handler.php,v $
-| $Revision: 1.10 $
-| $Date: 2009-04-23 20:23:42 $
+| $Revision: 1.11 $
+| $Date: 2009-09-19 20:46:08 $
| $Author: e107steved $
|
|
@@ -228,6 +228,7 @@ function resize_image($source_file, $destination_file, $type = "upload", $model
{
case 'png' :
if (!imagepng($dst_img, $destName, 6)) { $returnError = -1; } // Fix the quality for now
+ $outputFunc = 'imagepng';
break;
case 'gif' :
if (!imagegif($dst_img, $destName)) { $returnError = -1; }
@@ -239,7 +240,8 @@ function resize_image($source_file, $destination_file, $type = "upload", $model
$outputFunc = 'imagejpeg';
break;
default :
- $returnError = -7; // Invalid output extensiot
+ $returnError = -7; // Invalid output extension
+ $outputFunc = 'none';
}
}
@@ -247,7 +249,7 @@ function resize_image($source_file, $destination_file, $type = "upload", $model
if (!imagedestroy($dst_img)) { $returnError = -3; }
if ($returnError)
{
- echo "Resizing error (2): {$returnError}
";
+ echo "Resizing error (2): {$returnError} - {$outputFunc} -> {$destName}
";
return FALSE;
}
break;