John Cupitt
John Cupitt
Hi @mertalev, You two images above ^^ look identical on firefox on linux, but different in firefox on macos, interestingly. libvips uses ICC profiles for colour management, but your image...
... you're right, we could also add an `sdr` (for example) option to `heifload` which enabled `convert_hdr_to_8bit`. That might be a simple fix.
It'd become a regular SDR image, yes. All the extra HDR bits would be removed. I think you'd need to switch to an ICC workflow and encode with 10 or...
Oh, that's a good find! It looks like they have this code: https://github.com/mnaydenov/FreeImage-Sidecar/blob/master/src/PluginHEIF.cpp#L98-L169 Which is pretty simple and should be easy to add to libvips. Testing would be a PITA...
Let's make this into an enhancement issue and make a test PR.
Oh very nice @Starbix, I'll try to have a look this weekend!
We can probably do both. Maybe: 1. `heifload` reads the nclx tags, makes and attaches an ICC profile, and also attaches the nclx tags. 2. The operations that transform images...
Modern libjpegs let you select 12 bit encoding at runtime, and I expect you could encode HDR somehow in the ICC profile. But the number of applications that would be...
> I haven't personally used libvips yet -- does it support generic color profile conversion already, or is this a whole new avenue to implement? Yes, it uses lcms2 for...
Thank you @mm2. We're hoping to make HDR profiles automatically from the nclx tags on formats like AVIF. It sounds like it should just work if we use algebraic LUT...