png image (with transparency) drawn over progressive jpg is blurry #1308
Unanswered
pedrobagatin
asked this question in
Q&A
Replies: 2 comments 6 replies
-
Unfortuntely, if you can't provide sample images, we can't do much. "It becomes blurry" could mean anything.
Does loading the progressive jpg return an error code? You shouldn't look at |
Beta Was this translation helpful? Give feedback.
3 replies
-
stb_image ignores all color profiles; if the file has 8-bit input and stb_image is producing 8-bit output, there isn't enough precision to do any color transformations. but normally alpha is not affected by color profiles. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was having this issue: "no SOI" error when loading some PNGs, basically images are not shown properly (ex: if it is an image showing text, like title, which has alpha channel, transparency), it becomes blurry. So first updated stb_image version to 2.27, therefore got rid out of SOI error message, but problem still happening. One way to fix it was by saving image using gimp (png to png conversion). I noticed it converts from adobeRGB -> sRGB when loading it in gimp, later also has some options for the conversion (compression rate, background color, transparency, etc) so I think it might be a good reason to fix the problem. Two other things I noticed which I don't know if they are problematic:
Conclusion: I could fix for images that I am responsible for using gimp, but some of them come from third-party provider which I can`t convert before hand, any ideas/suggestions how to fix for this case?
Beta Was this translation helpful? Give feedback.
All reactions