GoogleChromeLabs / squoosh

Make images smaller using best-in-class codecs, right in the browser.
https://squoosh.app
Apache License 2.0
21.31k stars 1.48k forks source link

HDR support #1279

Open gregbenz opened 1 year ago

gregbenz commented 1 year ago

Is your feature request related to a problem? Please describe. Squoosh clips HDR data.

Describe the solution you'd like Conversion from a valid HDR source image (32-bit TIF ideally to support Photoshop, as well as 16-bit PNG) to a valid HDR for mat (AVIF and JXL support ideal)

Does other service/app have this feature? avif fence will support at least 16-bit PNG to a valid HDR AVIF. See the command line examples at https://github.com/AOMediaCodec/av1-avif/tree/master/testFiles/Netflix/avif

Additional context Add any other context or screenshots about the feature request here.

donmccurdy commented 1 year ago

A couple other thoughts on HDR images — for web developers working with WebGL and WebGPU textures, OpenEXR (.exr) and .hdr are probably the most common input formats. OpenEXR is the better of the two as outputs go.

KTX2 (BC6H, RGBA16, RGBA32) (related: #1017) would also be an excellent, future-proof output target for WebGL/WebGPU, but is not widely supported today.

cromefire commented 6 months ago

Conversion from a valid HDR source image (32-bit TIF ideally to support Photoshop, as well as 16-bit PNG) to a valid HDR for mat (AVIF and JXL support ideal)

Not only that, for a start even not dropping HDR when converting the same Format so AVIF -> AVIF would be good (as that's probably easier to start with than all the wild metadata conversions needed from the rest).

Same thing for Ultra HDR images, it seems to drop the gain map and/or metadata on that as well currently.

hybridherbst commented 1 week ago

Came here to ask for HDR AVIF support, just to see familiar faces :) So, bump!