r/postprocessing • • Oct 07 '26

Image format?

Which image format is good these days on the web for a full-screen display of photos, up to 4K? Smaller for faster transfer, but without quality compromise. Compatibility is important with all desktop browsers (Linux, Mac OS, maybe even Widows), but mobile clients not so much. There are few jpeg variants, webp, may be png should be considered?

Will be exporting from Darktable, it seems to have a wide variety of export options.

2 Upvotes

13 comments sorted by

View all comments

1

u/mq2thez Oct 11 '26

For my static photography portfolio I use avif with a fallback to webp.

It’s significantly cheaper than storing/deploying JPG or PNG, and the quality is still quite great.

1

u/schwanzweissfoto Oct 26 '26

Why would you use WebP as a fallback instead of JPEG, given it has less compatibility and color bleeding issues compared to JPEG at the same filesize?

1

u/mq2thez Oct 26 '26

Because it’s not the same filesize? WebP is like a 25% filesize improvement over JPG.

Compatibility problems are not really a concern for me. It’s a personal website and I use plenty of modern CSS. Plus, WebP support has been solid for years, and I’m not really worried about iOS 13 or Safari 16 users.

AVIF support isn’t broad enough for my tastes yet, so I definitely need a fallback…. But falling back to WebP instead of JPG on an image-heavy website makes a fairly big difference in bandwidth usage and deploy times. Falling back to WebP and then JPG was quite a lot of extra filesize and deploy time for essentially no reason.

1

u/schwanzweissfoto Oct 27 '26

Because it’s not the same filesize? WebP is like a 25% filesize improvement over JPG.

This often-repeated statement stems from a Google article where their best WebP encoder was compared to the worst JPEG encoder (cjpeg). If you use a modern optimized JPEG encoder (e.g. mozjpeg), this file size difference is not the case. Almost every program that saves JPEG files uses an encoder that outperforms cjpeg. That article was corporate propaganda – and you fell for it.

There is no need to believe me, as you can easily test this for yourself: Just make a screenshot of something where you can easily see color bleeding (e.g. a voxel game with contrasting blocks or a red lawn chair in front of a green bush) and save it as both WebP and JPEG with the program of your choice. If that program uses a modern JPEG encoder, any fine color details will look much worse in WebP than in JPEG (i.e. you may not even have to zoom in to see the color bleeding).

1

u/mq2thez Oct 27 '26

Hah, alright, well, I guess then my answer is that the WebP files are smaller than the JPGs were by a fair shot before I dropped the JPG fallback, and I couldn’t notice any visible issues with any of my photos. The full image pipeline is processed with sharp by Astro using full-size JPGs exported by Lightroom as the basis, so I took whatever it did.

1

u/schwanzweissfoto Oct 27 '26

I couldn’t notice any visible issues with any of my photos

I suggest to do a side-by-side comparison with a source image (RAW or PNG), a JPEG, and a WebP then. The difference in color fidelity should be obvious, i.e. at the same filesize WebP looks like a JPEG of slightly lower quality where the colors are both bleeding and a bit “off” compared to both the source and a JPEG with the same filesize as the WebP.