CMS MADE SIMPLE FORGE

CGSmartImage

 

[#8134] Big watermark images are not applied

avatar
Created By: Mathieu Muths (airelibre) (airelibre)
Date Submitted: Fri Jul 13 03:56:15 -0400 2012

Assigned To: Robert Campbell (calguy1000)
Version: 1.9
CMSMS Version: 1.10.3
Severity: Minor
Resolution: None
State: Open
Summary:
Big watermark images are not applied
Detailed Description:
When the watermark image defined in CGExtensions is larger that the original
image, then the watermark is not applied.

In class.CGImage_Watermark_Filter.php, function "transform", I removed :
if( $image['width'] < $this->_width || $image['height'] < $this->_height ) 
      {
			return $_dest;
      }

And now it works. This is very useful when you have different images sizes, and
you want to always have something like a "credit" transparent image over the
picture.

Hope this will help


History