I have written a script that uploads a jpg, enters an entry in a mysqldb, renames the jpg to the id of the entry then resamples the jpg and saves it in the same folder but with "tn_" appended to the beginning of the file name and it saves it as a png instead of jpg.
my question is this...
how do i determine the colour usage of the png? (in this instance I would like it to use 64 colours or somthing like that) with transparency set to purewhite (#ffffff)
any help would be appreciated.
Thanks.
Jamie Fuller


)