forked from AcademySoftwareFoundation/OpenImageIO
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
png: Add "png:alpha_srgb" configuration hint for PNG read
Although PNG seems clear that the alpha channel should always be encoded linearly (even of RGB is sRGB or gamma corrected), I think that some PNG files seem to run the alpha through the sRGB encoding as well. We need a way to read those files with that interpretation, even though it's technically wrong. This patch adds a configuration hint when opening a PNG file, "png:alpha_srgb", which if nonzero will (ugh) interpret the alpha channel as if it, too, is srgb encoded. Signed-off-by: Larry Gritz <lg@larrygritz.com>
- Loading branch information
Showing
2 changed files
with
24 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters