Lossless Image File Formats

1 · Jonathan Chan · Aug. 7, 2023, midnight
Summary
This was originally a two-part post on cohost. Recently I needed to convert a large TIFF scan of a duochrome page into something reasonable, i.e. a web-supported image format that was still lossless since it seemed a shame to ruin such a nice high-definition scan with lossy compression. In terms of lossless formats, all browsers1 support PNG, WEBP, and AVIF, while I really hope JXL support is imminent. I therefore wanted to see which file format would perform the best in terms of file size by co...