Episode 190: JPEG and PNG, what’s in it?

Share:

Listens: 0

Meet the GIMP

Technology


The last episode was for absolute beginners, this one is for Geeks. I try to explain (and understand on the way) how images are stored in PNG and JPEG files. PNG (pronounced “PING”) does this lossless, the image can be retrieved in the same quality as the original. PNG works wonders with graphics with a lot of lines and clear colour areas, comics and logos for example, but it creates monster files out of photos and similar images. JPEG looses details, aquires artefacts and generally mangles the image. But it has so beautifully small files and the losses are in most cases invisible – except in the area where PNG is good. So both have their niche to live in. How is this done? I try to explain this without the math, using analogies, plaing with GIMP to reenact some stages and reducing the complexity a lot. If you want to know the exact facts, read up in Wikipedia, which was also my source of information, or look for other sources. I hope that I never crossed the border between simplification and telling wrong stuff – but I am really not sure. The math is really over my head, last time I had to tackle such a level a Pentax ME Super was still a new camera model. I am happy about any comments that improve my understanding – and all other comments too.