@thomasfuchs the HDR metadata for JPEG images is pretty involved and runs into a bunch of de-facto "proprietary standard" extensions, behaviours, and implementation quirks. it's really easy to get wrong and it complicates all operations.
it's also rife with fingerprinting problems because you can end up leaking a lot of image sensor cal data that's unique to the camera that took the picture. usually that's not much of a problem, but at the platform scale you have no choice but to tackle it.