w3c / png

Maintenance of the PNG specification
https://w3c.github.io/png/
Other
44 stars 11 forks source link

Reccomend how to deal with negative values #420

Closed simontWork closed 6 months ago

simontWork commented 6 months ago

Following a long discussion on the mailing list, perhaps we should add a note somewhere in the text that when the FullRange flag is set to zero, the recommended practice is

out = sign(in) * FUNCTION(abs(in))

Where function can be for example EOTF, OETF^-1

svgeesus commented 6 months ago

That sounds reasonable to me, would you like to make a PR to add that?