grapeot / AppleJPEGGainMap

Reference implementation to embed a gain map to an SDR photo so it renders as HDR on iPhones and Macs.
34 stars 0 forks source link

how to generate gain_map.png #1

Closed one2zero closed 7 months ago

one2zero commented 7 months ago

Can you explain how the gain_map.png in the project is generated? I use other grayscale PNG images, and CGImageDestinationFinalize fails.

grapeot commented 7 months ago

It should be grayscale 8bit images. It's may worth double checking whether the used PNG file is RGB or Grayscale.

grapeot commented 7 months ago

I'm closing this issue for now since there is no further reply. But feel free to reopen it.