Index: branches/5.1.x/core/units/helpers/image_helper.php =================================================================== diff -u -N -r13086 -r13545 --- branches/5.1.x/core/units/helpers/image_helper.php (.../image_helper.php) (revision 13086) +++ branches/5.1.x/core/units/helpers/image_helper.php (.../image_helper.php) (revision 13545) @@ -1,6 +1,6 @@ parseFormat($max_width); @@ -194,7 +194,11 @@ // 3. apply watermark $dst_image_rs =& $this->_applyWatermark($dst_image_rs, $params[$watermark_size . '_width'], $params[$watermark_size . '_height'], $params); - return @$write_function($dst_image_rs, $params['dst_image'], 100); + if ($write_function == 'imagegif') { + return @$write_function($dst_image_rs, $params['dst_image']); + } + + return @$write_function($dst_image_rs, $params['dst_image'], $write_function == 'imagepng' ? 0 : 100); } } else {