lovell / sharp

High performance Node.js image processing, the fastest module to resize JPEG, PNG, WebP, AVIF and TIFF images. Uses the libvips library.
https://sharp.pixelplumbing.com
Apache License 2.0
29.31k stars 1.3k forks source link

How to get HDR images working with Sharp #4263

Open adityapatadia opened 1 week ago

adityapatadia commented 1 week ago

Question about an existing feature

What are you trying to achieve?

Trying to process HDR images and expecting to get correct HDR output

When you searched for similar issues, what did you find that might be related?

Could not find specific issues on it. Only this one: https://github.com/lovell/sharp/issues/2947

Please provide sample image(s) that help explain this question

Original HDR Image 01_base_hdr.jxl.zip

SDR Image 01_base_sdr.jxl.zip

JPEG for that image according to adobe 01

Output from sharp in JPEG: 01_base_hdr jxl-4

Output from sharp in JXL: 01_base_hdr.jxl.zip

Here is the link to download HDR photos directly from ADOBE: https://www.adobe.com/go/gainmap_sample_photos