[opencms-dev] CmsImageScaler and PNGs

Roman-Uhlig roman.uhlig at maxity.de
Mon Sep 20 11:10:10 CEST 2010


We scale PNG images through OpenCms without any problems.
Is your image PNG-8 or PNG-24? (or post a link to the image)

Roman


steve bryan wrote:
> 
> Hi
> 
> I'm using the CmsImageScaler API in a reasonably standard way. It does
> resize JPGs fine but doesn't seem to make PNGs any smaller (they remain
> the
> original size with just reduced height and width attributes).
> 
> I thought the scaler handled PNGs. Does it not, or am I doing something
> wrong?
> 
> Rendered source is as follows:
> 
>  /xxx/sample.png?__scale=w:57,h:57,c:transparent,q:100 
> 
> If the file is sample.jpg then it is reduced in size to 57x57, but the png
> remains it's original size.
> 
> Thanks
> Steve
> 
> 
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
> 
> 

-- 
View this message in context: http://old.nabble.com/CmsImageScaler-and-PNGs-tp29603626p29757573.html
Sent from the OpenCMS - Dev mailing list archive at Nabble.com.




More information about the opencms-dev mailing list