You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
thanks for raising this, there are currently many efforts in implementing UltraHDR support into image processing frameworks, like Python Pillow, LibVips, ImageMagick and various HDR image viewers.
The usual approach is to integrate libultrahdr, but this is certainly not the route Hugo want's to take. Since it's a C / C++ library.
But this might be a good starting point to raise an issue with a Golang imaging library or even the one provided by default...
Here is the documentation of the format.
In short: I's a MPO JPEG (Multi Picture Object) which uses XMP to reference the gainmap, this is a (usually) downsampled image used to indicate which areas of an image should have higher brightness ...
What version of Hugo are you using (
hugo version
)?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:
The text was updated successfully, but these errors were encountered: