You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks! Of mozjpeg's tricks, progressive scans with optimized Huffman tables are the ones I'd consider. In my tests they make files about 2–3% smaller without changing a single pixel, so it could look like encodeJPEG({ quality: 80, progressive: true }). Trellis quantization is several times slower in C and showed little gain at the same file size, so I wouldn't expect it in pure TypeScript.
What do you need it for? Smaller files for the web, or something more specific?
Activity
matmen commentedon Nov 28, 2026
Thanks! Of mozjpeg's tricks, progressive scans with optimized Huffman tables are the ones I'd consider. In my tests they make files about 2–3% smaller without changing a single pixel, so it could look like
encodeJPEG({ quality: 80, progressive: true }). Trellis quantization is several times slower in C and showed little gain at the same file size, so I wouldn't expect it in pure TypeScript.What do you need it for? Smaller files for the web, or something more specific?