This project is read-only.

Compression Level

Sep 29, 2009 at 1:10 PM
Edited Sep 29, 2009 at 1:10 PM

Is there any way to set the quality and compression level for png?

Regards,

Thierry

Coordinator
Sep 29, 2009 at 2:31 PM

No, this is not possible. This is just not a problem of my imagetools but of the file format.

PNG is designed as format which does not reduce the quality while encoding. When using a png format you will not loose detail while saving and loading the picture, so it does not support a quality and compression level.

 

If you need smaller images use jpg instead.

Jan 7, 2010 at 9:00 PM

In Paint.Net I can save the same image to PNG-8, PNG-24 or PNG-32 with a factor of 10X smaller from 32 to 8.

I'm using ImageTools to capture the screen since SL3 doesn't print.. Can I capture it in PNG-8?

Thanks 

Pat in New Hampshire USA

Coordinator
Jan 7, 2010 at 9:54 PM

I think the names say the following:

PNG-8: All colors have an index OR grayscale (NO alpha).
PNG-24: Truecolor without alpha.
PNG-32: Truecolor with alpha.

(Look here: http://en.wikipedia.org/wiki/Portable_Network_Graphics#Color_depth)

My idea to write a png encoder was about supporting a format with an alpha channel, so I only implemented PNG-32. When u need alpha, use PNG, if not its perhaps a better idea to use JPG where u can define the compression level. But please have in mind, that the picture will loose information when using a higher compression level.