Page 1 of 1

Changing any PNG file to 8bit PNG File

Posted: Fri Jan 27, 2006 6:09 am
by ahsanra
Hi,

My software only works with PNG files and in that only 8 bit PNG Files.
So i want it to be dynamic and incase there is need of using any PNG file i want my software to change it in 8 bit first and then use it in software.

How can i change any PNG File no matter what resolution it has to 8 Bit PNG Files


Thanks

Posted: Fri Jan 27, 2006 7:10 am
by onion2k
http://uk2.php.net/imagetruecolortopalette

There's a function in first comment that does a decent job of what you want.

Posted: Fri Jan 27, 2006 7:32 am
by ahsanra
Thanks alot

I wonder how many time i have to thank you