Tom94 / tev

High dynamic range (HDR) image viewer for graphics people
BSD 3-Clause "New" or "Revised" License
1.02k stars 86 forks source link

Ultra HDR (JPEG with gainmap) not supported #226

Open cmahnke opened 2 months ago

cmahnke commented 2 months ago

I've got a couple of HDR images generated by libultrahdr. These are displayed by Chrome correctly, but aren't displayed by tev as intended.

Is suspect that the format (or better the gainmap) isn't detected , since the image is displayed without it. Further information on how I generated the images are available in this thread

A great ressource is also the page of Greg Benz.

CC @gregbenz

Tom94 commented 2 months ago

Hi, yes, tev does not support ultrahdr. It supports JPG, which ultrahdr is backward compatible with, which I suspect is why it only displays SDR for the images you generated. It uses stb_image to load JPG.

I'm open for PRs that add ultrahdr image loading to tev, but don't have the cycles to do so myself at the moment.