writing truecolor PNG

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

Moderators: helmut, XnTriq, xnview

Post Reply
User avatar
herr_k.
Posts: 192
Joined: Fri Jan 06, 2006 6:11 pm

writing truecolor PNG

Post by herr_k. »

of what i read so far, it seems to be the best lossless format to use for my needs (better compression than tiff/faster than jp2).
but how can i save a file with this format?
iin the write dialog there is only png.
to get a lossless png -> set compression level to "0" ?
User avatar
Clo
XnThusiast
Posts: 4441
Joined: Sun Oct 17, 2004 4:57 am
Location: Bordeaux, France
Contact:

Like the display---

Post by Clo »

:) Hello

- According to the daily practice, I can say you that XnView saves the PNGs like the current colour-depth used by the System display.
- 16 & 24 BPP are saved as 24 BPP, but 32 BPP is not supported at saving; I tested also under that colour-depth, I got only 24 BPP.
- However, 32 BPP can be read (I checked only with BMP, I've not any else 32 BPP image here…)

:mrgreen: Kind regards,
Claude
Clo
Old user ON SELECTIVE STRIKE till further notice
User avatar
herr_k.
Posts: 192
Joined: Fri Jan 06, 2006 6:11 pm

Post by herr_k. »

ah ok. seems to work.
compression level -> 0: file = 5.81mb
compression level -> 9: file = 3.61mb (this is even like jp2!(3.58mb)) and 20 times faster than jp2.
good format. i will use this defenitely for archiving.
thx.
User avatar
mk.2
Posts: 23
Joined: Sun Aug 28, 2005 10:05 pm
Location: Perth, Australia

try PNGOut

Post by mk.2 »

If you use PNG for archiving, you probably interest in PNGOut.
http://advsys.net/ken/utils.htm
http://advsys.net/ken/util/pngout.htm

Most of the time, it can dramatically reduce size of your PNG files. However, it's pretty slow.
User avatar
Drahken
Posts: 884
Joined: Sun Apr 10, 2005 4:29 pm

Post by Drahken »

PNGout is a great tool for 256 or less color PNGs, but is a waste of time for true color PNGs. The author's site claims it doesn't work at all with truecolor ones, but it doesw work somewhat (just not well) and may wind up converting your truecolor PNGs into 256 color ones.

There is never 2 seperate PNG options in any program. In most programs, there is some option on the PNG options page to decide wheter to save it as truecolor, indexed (256 color), or greyscale. In some progs (such as xnview), the PNG will be saved depending on how many colors you currently have it set to within the program itself. If you have decreased the colors to 256 or less, it will save as indexed PNG. If you have set the image to greyscale or bitonal, it will save as greyscale. If you have not decreased the colors, it will save as truecolor.

Never save a PNG with a compression of 0, it's just a waste of time. PNG compression is similar to zip, rar, etc in that the compression ratio has nothing to do with image quality, it is merely a tradeoff between filesize and compress/decompress time.
With indexed PNGs, you should always use a level of 9 (unless you have a really old comp, like a 386 or older). With truecolor PNGs, you will often get a better filesize at a level of 3 or 4 than you do at 9. For some reason, photographic images make a filesize jump at compression level 4 or 5.
Oh the feuhrer, oh the feuhrer, oh the feuhrer's nipples bonk!
Post Reply