Jump to content

dark PNGs


Recommended Posts

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. 

 

dark.jpg

light.jpg

Edited by Ian.Parberry
Link to comment
Share on other sites

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.

  • Like 1

(September 25th, 2023)  Sorry about any broken images in my posts. I am aware of the issue.

bp-sig.png
My Gallery  |  My Plugin Pack

Layman's Guide to CodeLab

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...