VT45 Posted March 19, 2021 Share Posted March 19, 2021 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: But when I go to save it, the save configuration window displays this: 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? Quote Link to comment Share on other sites More sharing options...
null54 Posted March 19, 2021 Share Posted March 19, 2021 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. Quote Plugin Pack | PSFilterPdn | Content Aware Fill | G'MIC | Paint 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 comment Share on other sites More sharing options...
IHaveNoName Posted March 19, 2021 Share Posted March 19, 2021 I was wondering whether VT45 was using the default save as PNG or the more sophisticated "Optimized PNG" plugin. Quote Link to comment Share on other sites More sharing options...
MJW Posted March 19, 2021 Share Posted March 19, 2021 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 1 Quote Link to comment Share on other sites More sharing options...
Rick Brewster Posted March 19, 2021 Share Posted March 19, 2021 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. Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html 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.