4 ms·
You should use mozjpeg instead. It's a jpegtran fork and drop in replacement which optimizes the Huffman table even better.
by marton78 7y ago
You should use mozjpeg instead. It's a jpegtran fork and drop in replacement which optimizes the Huffman table even better.
- oefrha 7y agoActually, I’ve been using mozjpeg’s version of jpegtran instead of libjpeg’s for god knows how long.
- jonsneyers 7y agoDoes it really optimize the Huffman trees better? I wouldn't think there's more you can do to optimize Huffman trees than make them reflect the actual histogram. Mozjpeg does try different progressive scan scripts – different scripts lead to different compression behavior. That helps a bit, though I don't like it when it separates the Cb and Cr planes, becauses that leads to "flash of weird color" when decoding progressively. See also: https://cloudinary.com/blog/progressive_jpegs_and_green_martians https://cloudinary.com/blog/progressive_jpegs_and_green_mart...