MDN Blog
Read post

Pixel data from encoders to decoders

Explores how image data transforms from raw pixels to compressed files through encoding and decoding processes. Covers pixel fundamentals, image formats like JPEG, AVIF, and WebP, and compression techniques including chroma subsampling, spatial locality exploitation, prediction modes, DCT transformations, quantization, and entropy coding. Demonstrates practical JavaScript examples for pixel manipulation and explains how modern codecs achieve significant file size reductions while maintaining visual quality through various optimization strategies.

    #webdev#javascript
Aug 04, 2025•22m read time•From developer.mozilla.org
Post cover image
130 Impressions
MDN Blog's image
MDN Blog

MDN Blog is a platform or publication associated with Mozilla Developer Network (MDN), offering arti...

371 Followers

•

2.3K Upvotes

Would you recommend this post?

Copy link
WhatsApp
Facebook
X
New Squad
  • © 2026 Daily Dev Ltd.
  • Guidelines
  • Explore
  • Tags
  • Sources
  • Squads
  • Leaderboard