Jump to content

Bit depth weirdness


Techy4198

Recommended Posts

When saving a PNG file with the bit depth set to auto detect, it sometimes incorrectly guesses 8 bit instead of 24 or 32, which somehow creates an image which looks fine in windows photo viewer and PDN itself and on thumbnails, but in other programs (or PNG file reader APIs) it messes up wildly and cannot be colorized in some situations. Here are 2 screenshots from Minecraft, one with the issue (taken a while ago) and one which I took today after realizing what had happened and saving in 32 bit depth.

 

ZAj1SbL.png

e0JaeZ4.png

 

More info:

Windows 7 SP1 64Bit

Paint.NET 4.0.3

.NET Framework 4.5.1

Link to comment
Share on other sites

Well, it certainly auto-chooses 8bit when theres less than 256 colors used in the image. That would be a correct decision. If it looks fine in other programs but just not in minecraft, then that's pretty much proof that paint.net is working correctly and it's minecraft with the problem.

Link to comment
Share on other sites

  • 1 month later...

I'd say it's not just Minecraft, since it uses a pretty standard Java PNG library, which I think might actually be built into OpenGL, which is quite a big thing...

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...