Open
Description
What version of Hugo are you using (hugo version
)?
hugo v0.132.1+extended darwin/arm64 BuildDate=2024-08-13T10:10:10Z VendorInfo=brew
Does this issue reproduce with the latest release?
Yes
Description
The image processing functions of Hugo seem to strip out the necessary metadata to display an image with High Dynamic Range (HDR).
When I open the source image in Google Chrome, the image shows correctly in HDR. When I view the same image on a site generated from Hugo, it is displayed normally / SDR.
I'm not an HDR expert, but from what I understand, Google's Ultra HDR (used with Pixel phones) stores the HDR data in XMP metadata in the image. I believe there are also "Gain Maps" embedded in the image.
Additional Info
Here is a source image you can test with: test image
This is from Gemini:
- Android's Ultra HDR Image Format: This format uses XMP metadata to define multiple images and their relationship to create the HDR image. Details
- XMP Metadata: A common method for storing additional data in images is using XMP (Extensible Metadata Platform) metadata. This allows for the storage of structured information within the image file.
- Gain Maps: Some HDR formats use gain maps to represent the difference between the HDR image and a standard dynamic range (SDR) image. This information is embedded alongside the main image data.