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

png not showing correct values #219

Open Chadt54 opened 6 months ago

Chadt54 commented 6 months ago

There should be a second green checkmark and red X underneath the visible ones, but tev doesn't show the values when you zoom in. Seems like they are being premultiplied?

Reference screenshot: image

Original File: AlphaBlendModeTest_Labels

Tom94 commented 6 months ago

Yes, that's correct. tev always represents colors with pre-multiplied alpha and converts other formats, like PNG, on load. It also converts to linear colors, so it wouldn't directly display the bytes from the PNG image, even if colors weren't getting pre-multiplied.

I'm afraid this is something I am not willing to change or add toggles for -- it's the standard for HDR image rendering and compositing software which tev targets. (And my personal opinion is that every image format should have pre-multiplied alpha by default in any case. I'll save myself the rant and link this glorious video. :))