Page 1 of 1

CGSmartImage and transparent PNG's

Posted: Mon May 06, 2013 11:02 am
by webform
Is it possible to use transparent PNG's (logo's) with CGSmartImage 1.10.8?

I can't figure out which setting to use. I've tried:

Code: Select all

{CGSmartImage src=$logo max_width='175' alt=$firmanavn}

And

{CGSmartImage src=$logo filter_resizetofit='175,140,transparent' alt=$firmanavn}
And i tried to change "Image Embedding Mode" to "Based on Image Type" but the PGN's stays opaque.

Re: CGSmartImage and transparent PNG's

Posted: Fri May 24, 2013 5:08 pm
by GroeneKaktus
Yes it is,
the following works for me (same case: transparent logo's to resize)

Code: Select all

{CGSmartImage src=$logo noembed="1" alt="" filter_resize='w,250,transparent' max_height="250" max_width='250'}
Note: this works if the original image is at least 250px wide. Otherwise it gets crackled or opaque.

Regards,

Jeroen

Re: CGSmartImage and transparent PNG's

Posted: Sat May 25, 2013 2:48 pm
by webform
Sorry! No change in result . PNG still opaque ???