Jump to content

PNG indexed palette


Recommended Posts

Hello,

 

I am drawing a 4 palette png file. Here is the palette as a plain .txt file:
;START
FFC6D783
FF8ECF53
FF2D632F
FF11380F
:END

I attach the png file created archer_mine.png

 

I use the png file in a custom external tool and I noticed the darkest and light color are switched in the final result.

I opened the same .png file in mtPaint software and looked at the palette. As you can see, the palette here has a different order: light and darkest are actually switched.

 

Is it possible that Paint.NET software is switching colors in the indexed palette inside the png file ? Is there a way to tell Paint.NET not to do so and report on the .png file the exact order of the colors I put into the used palette ?

 

In other words, how can I save my png file having the indexed palette ? I've also tried the OptiPNG fileType http://optipng.sourceforge.net/ but still I have problems, as the colors are all switched, as the palette is reversed. I think Paint.NET should not mess with my custom palette I use when saving an image.

 

Thank you
 

 

archer_mine.png

paintnet.palette.png

mtpaint.palette.png

Edited by StudioLoading
optipng add
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.

 Share

×
×
  • Create New...