TheMachine1 wrote:
Lau wrote:
A problem I've been running into is that PNG files seem to take up more space (I kept getting stuck with my avatar wanting 16.1KBytes! I know it's mainly because going from JPEG to PNG is being unfair.
I think you can set different levels of compression optimization but png is a lossless format that simply does not compress as small as non-lossless gifs or jpegs.
Yes and no.
Although PNG is lossless, it uses compression techniques that are good for image data.
If you take a pure, raw, photographic image, then store it as PNG, the file size will compare well with JPEG, assuming you don't make the JPEG image badly lossy.
What goes totally to pot is when you take the reconstituted JPEG image and store that as PNG. The artifacts introduced by the JPEG lossy compression have to be encoded losslessly by the poor old PNG algorithm, and they are
not typical photographic image patterns.
I've just done a bit of a comparison, of a file stored as JPEG at various compression percentages, then reloaded and re-stored as PNG. It bears out what I've just been saying, i.e. the JPEGs get smaller (and rubbishier) as you up the compression. The PNGs are bigger, leveling out at what I guess is the pixel by pixel, lossless, no compression achieved, size.
Interestingly, I started with a 13.5Kbyte file (PNG), and the "100%" JPEG was only 12K. But re-storing that as PNG went up to 15KB, so the JPEG was lying. It must have been lossy, even though I asked it not to be!
_________________
"Striking up conversations with strangers is an autistic person's version of extreme sports."
Kamran Nazeer