Index: branches/RC/core/units/general/helpers/image_helper.php =================================================================== diff -u -N -r11937 -r11938 --- branches/RC/core/units/general/helpers/image_helper.php (.../image_helper.php) (revision 11937) +++ branches/RC/core/units/general/helpers/image_helper.php (.../image_helper.php) (revision 11938) @@ -1,6 +1,6 @@ _applyFill($dst_image_rs, $params); - } - // 4. apply watermark - $dst_image_rs =& $this->_applyWatermark($dst_image_rs, $params['target_width'], $params['target_height'], $params); + // 4. apply watermark + $dst_image_rs =& $this->_applyWatermark($dst_image_rs, $params['max_width'], $params['max_height'], $params); + } + else { + // 4. apply watermark + $dst_image_rs =& $this->_applyWatermark($dst_image_rs, $params['target_width'], $params['target_height'], $params); + } } return @$write_function($dst_image_rs, $params['dst_image'], 100);