Skip to content

Question About RGB and sRGB with PNG #1661

Answered by nothings
hollinwilkins asked this question in Q&A
Discussion options

You must be logged in to vote

It's the appropriate solution when using stb_image_write.

However, be advised that the PNG spec does support metadata that explicitly indicates a PNG is sRGB, but stb_image_write does not support writing that metadata. Nevertheless, with most PNG readers this should be fine as they'll default to assuming the PNG is sRGB.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by hollinwilkins
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants