Why is there a compression level for PNG images?

Ask for help and post your question on how to use XnView Classic.

Moderators: XnTriq, helmut, xnview

Posts: 51
Joined: Mon Sep 04, 2006 3:43 pm

Why is there a compression level for PNG images?

Post by pstein »

When I save a picture as .PNG then the options how a compression level for .PNG format.


I thought PNG is lossless and hence has NO more-or-less compression but the best one.
It is the first time that I have seen such a level for PNG in all the image editor prgms.

User avatar
Moderator & Librarian
Posts: 6259
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Post by XnTriq »

Jens Brückmann ([url=http://www.j-a-b.net/web/graf/png-compression]PNG Compression Rates[/url]) wrote:PNG compression is able to considerable reduce the file size of an image without any loss of quality. While the jpg compression is quite lossy, in png compression there is neither a change of colours nor a reduction of colour depth. The number of colours exactly remains the same.

Ten steps of compression can be used for png images. Below is shown, how an image with maximum amount[1] of possible colours is compressed from a file size of about 197kB, which is roughly the same as the corresponding bmp file size to 678 bytes, which is just 3.4‰ of the original size. Notice that already the first compression rate reduces file size to 1.8kB, i.e. 1% of its original size.
Posts: 567
Joined: Sat Sep 04, 2004 5:09 pm

Post by Danny »

Yeah, it doesn't really make sense since the program should find out by itself which level to choose for best results.

Just crank it up to max and never look back i'd say.
Get the bugs fixed, THEN start adding features. It sucks, but someone has to do it.