Post Reply 

How to set the palette on a png and can I easily load a list of integers as a palette

Mar 8, 2012, 05:48
Post: #1
How to set the palette on a png and can I easily load a list of integers as a palette
Hey, I've only ever used gimp sparingly and for simple stuff. I now need to set the palette of a 8-bit png to a specified palette, but I can't find any in gimp or online about how to load a palette. I need the palette to contain colors that may not be in the image if thats possible as these images are sprites of under 40 colors, but I need a full 256 color palette. Also is there any simple way to convert a string of numbers into a gimp palette? If not Ill probably just look at how they are saved and just write a simple script, but I thought i would ask.
Thanks for any help
Find all posts by this user
Quote this message in a reply
Mar 8, 2012, 16:36
Post: #2
RE: How to set the palette on a png and can I easily load a list of integers as a palette
Hey thanks for the help. Everything you said was right (except I don't think the tab before the title name is neccessary, but that is trivial). However it turns out I need to change the indexed palette (color map) to match the palette. I now have the palette I need and can choose it when I color index an image, but the colormap still only contains the colors used in the image while I need it to equal the entire palette. Thanks for the help
Find all posts by this user
Quote this message in a reply
Mar 8, 2012, 16:48
Post: #3
RE: How to set the palette on a png and can I easily load a list of integers as a palette
Ok a little more searching and I found I just need color>set color map, which now does the job of setting the full colormap, but it looks like it converts the colors I have now into the first set of colors in the palette, which is just grayscale. The colors in the image are indeed all in the color, because before I set the colormap to equal the palette, I set the palette when I color indexed the image. Maybe I just don't have a good enough understanding of how color indexing works, but is there any way to set the colormap while keeping the colors I have now (which are still in the colormap). Thanks again if you can help
Find all posts by this user
Quote this message in a reply
Mar 8, 2012, 17:08
Post: #4
RE: How to set the palette on a png and can I easily load a list of integers as a palette
Ok, so there is a checkbox for remove unused colors when I index the image. I think its fair to say I am an idiot and you can ignore my questions.
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  exporting png to PDF problem switched 1 279 Sep 20, 2018 09:31
Last Post: switched
  Error Message "¬†gimp-image-set-resolution¬†" quand 2 405 Sep 8, 2018 19:35
Last Post: quand
  How do I set the color in the grid filter? beebell 2 351 Mar 18, 2018 15:21
Last Post: paynekj
Question Saving to a gif format and choosing the color palette SpongeBob 0 357 Dec 13, 2017 19:13
Last Post: SpongeBob
  Recently Used File List foberle 1 452 Oct 14, 2017 13:55
Last Post: ythgilb

Forum Jump:


GIMP ForumPortalArchiveContactTermsRSS