CGSmartImage and transparent PNG's

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
User avatar
webform
Power Poster
Power Poster
Posts: 505
Joined: Sat Nov 25, 2006 3:39 pm

CGSmartImage and transparent PNG's

Post 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.
GroeneKaktus
Forum Members
Forum Members
Posts: 46
Joined: Sat Mar 06, 2010 10:38 am

Re: CGSmartImage and transparent PNG's

Post 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
User avatar
webform
Power Poster
Power Poster
Posts: 505
Joined: Sat Nov 25, 2006 3:39 pm

Re: CGSmartImage and transparent PNG's

Post by webform »

Sorry! No change in result . PNG still opaque ???
Post Reply

Return to “Modules/Add-Ons”