Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer

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

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.