Ian.Parberry Posted August 18, 2020 Share Posted August 18, 2020 (edited) When I save a PNG from paint.net (bit depth 32 or "automagic") and attempt to input it to a Microsoft graphics API (such as DirectX12), then it comes out too dark, even though it looks fine in paint.net. This happens for a lot of images, but not all of them. The only fix I've found is to load the image into Photoshop then save it again as a PNG with no compression ("large file size, fastest saving"). I've included two images of a cannon, the dark one is made out of sprites saved from paint.net and the light one (which is correct) is made up of sprites saved from photoshop. If I save images from paint.net using another file format such as tif or dds then there's no darkening, so it has to be a CODEC problem. It's tempting to blame it on Microsoft and give up, but I'd like to know why this is happening. In particular, I've read that paint.net saves PNGs without compression, but somehow that is different than photoshop saves PNGs without compression. I'm puzzled. Edited August 18, 2020 by Ian.Parberry Quote Link to comment Share on other sites More sharing options...
toe_head2001 Posted August 18, 2020 Share Posted August 18, 2020 This could also be an issue with gamma correction. You can use PNGGauntlet to remove the gamma correction and other metadata from PNG files. Let us know if that makes a difference. 1 Quote (September 25th, 2023) Sorry about any broken images in my posts. I am aware of the issue. My Gallery | My Plugin Pack Layman's Guide to CodeLab Link to comment Share on other sites More sharing options...
Ian.Parberry Posted August 18, 2020 Author Share Posted August 18, 2020 That fixes it. Thanks for the tip. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.