Urgent.News

What's breaking now, across hundreds of outlets.

More in Tech

Hitting Exact Target-KB Image Budgets and Routing HEIC/AVIF Locally in Web Workers

"Compress this image under 200 KB" is one of the most common form-upload requirements on the web—yet guesswork quality sliders almost always overshoot the byte budget or turn text unreadable.

  • Analyze ISO BMFF containers instead of relying on file extensions
  • Determine appropriate decoder by examining ftyp box in first 128 bytes
  • Achieve exact 200 KB target by bounded binary search and dimension adjustment

More from Monday, 30 November 2026 →