16 ms·
There is also FLIF (https://en.wikipedia.org/wiki/Free_Lossless_Image_Format https://en.wikipedia.org/wiki/Free_Lossless_Image_Format) which has a nice property
by Rhamb 7y ago
There is also FLIF (https://en.wikipedia.org/wiki/Free_Lossless_Image_Format https://en.wikipedia.org/wiki/Free_Lossless_Image_Format) which has a nice property: it is adaptive by design, that is, you can only look at the first X bytes and get a first approximation of the image, and the further you go, the better it becomes.
It also allows for both lossless and lossy compression.
I wonder how they compare.
(Don't take my word for that, I'm no expert on the subject)
- lucb1e 7y agoJPEG does that too, you can enable progressive rendering in the encoder. Having it enabled does not make the image larger in my experience.
- anderspitman 7y agoSomewhat OT but are there any JS libraries (or maybe servers via query params) that you can configure to only download X-bytes from progressive images? For example if you detect your user is on a slow mobile connection you could download at most 50kb from all the images on your site in order to keep it fast.