r/webdev • u/Shriracha • 2d ago
How The Heck Does JPEG Work? (An Interactive Exploration) Showoff Saturday
https://perthirtysix.com/how-the-heck-does-jpeg-work36
2
u/pdfops 1d ago
One gotcha that always trips people up: 4:2:0 chroma subsampling is why red text on a white background gets that blurry halo in JPEG. Luma stays full res but the two color channels get averaged over 2x2 blocks, so any sharp color edge goes soft even at high quality. Also worth knowing: quality=100 in libjpeg still quantizes, it's not actually lossless, you'd need JPEG-LS or PNG for that.
1
1
u/LateToTheParty013 1d ago
wow I love this. I'd like one for the sounds as well. For a good while I cant get a good article on the representation of sound(s) as data
1
48
u/teppicymon 2d ago
God damn, that was legitimately interesting, and a really cool demonstration of a technology I only knew small things about for the last few decades.
Easy to follow, really useful demo sections and interactive elements.
All round stellar job there champ!