Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I view the palette of a GIF image?

I'm using gd in php to add some text to a template image. I'm specifying black as the color for the text, but it shows up as olive. I suspect that true black isn't in the palette of the GIF, so I'm looking to view the palette to validate my hypothesis.

share|improve this question
Are you trying to read the palette in code or find an application which will allow you to directly view the colours in the palette? Old apps like Corel PhotoPaint used to do this, I think DPaint did too. I just looked and PaintShopPro shows the palette and you can load it and change the order to palette number / hue / luminance to get a better idea what is in there. – AdamV Oct 4 '10 at 16:31

the gd function imagecolorclosest in php at least gave me a workaround.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .