[opencms-dev] CmsImageScaler and PNGs

Steve Bryan steve at bright-interactive.com
Thu Sep 2 14:14:55 CEST 2010


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:

<img src="/xxx/sample.png?__scale=w:57,h:57,c:transparent,q:100" width="57"
height="57" class="" align="" style="" alt="Test" />

If the file is sample.jpg then it is reduced in size to 57x57, but the png
remains it's original size.

Thanks
Steve




More information about the opencms-dev mailing list