Jump to content

Saving a png combines similar colours


Recommended Posts

So I'm working on a topographic map of a size that I've worked on before, but something strange is happening I've never encountered before. When I go to save it as a png, I lose colors and therefore contours. So for example, I have this section of map:

L3rnUOi.png

But when I go to save it, the save configuration window displays this:

KRssbkz.png

When I go to save it, the darker green colour is lost, as is reflected in the save configuration window. I have never had this happen before, and I have no idea what's going on. How can I fix this?

Link to post
Share on other sites
2 hours ago, VT45 said:

How can I fix this?

 

Change the Bit Depth drop down from Auto-detect to 24-bit.

 

The Paint.NET auto-detect code is picking a 2-bit (4 color) palette, and the Microsoft code that generates the palette is making some bad color choices.

PdnSig.png

Plugin Pack | PSFilterPdn | Content Aware Fill | G'MICPaint Shop Pro Filetype | RAW Filetype | WebP Filetype

The small increase in performance you get coding in C++ over C# is hardly enough to offset the headache of coding in the C++ language. ~BoltBait

 

Link to post
Share on other sites
6 hours ago, null54 said:

The Paint.NET auto-detect code is picking a 2-bit (4 color) palette, and the Microsoft code that generates the palette is making some bad color choices.

 

Png is supposed to be a lossless format. I seems to me that when auto-detect is specified, 2-bit color should only be selected when there a four or fewer colors in the image. Anything else seems like a bug in auto-detect

  • Like 1
Link to post
Share on other sites

Palette generation, which is used when auto-detect determines that 8-bit (or less) is possible, has been funky in various ways for awhile. I've been working on the fix-of-all-fixes for the 4.2.16 update.

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

Link to post
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...