Click to See Complete Forum and Search --> : JPG to paletted img on Windows?


Anon
02-24-2002, 08:03 AM
Ì'm currently experimenting with some graphics routines and installed GD 1.6.2 on my PHP 4.1.0 on Windows 9x. I found the GD library ready and compiled, and it works like a charm.

But I can only work with JPEG's (and PNG/BMP). The thing is that I want to do some color manipulation/analysis, and the true color pictures I work on cannot be analyzed by my current GD, which works only on paletted images (even though it does not support GIF's!).

On http://www.boutell.com/gd/ I can get a newer GD (up to 2.0.1), which does not create GIF's, but seems to contain some functions, which I could use for my purpose (like ImageTrueColorToPalette).

But I can't find a binary of the file and I have no C-compiler. Those days are long gone, I'm afraid...

Does anybody have a clue to a solution: converting JPG's to paletted images, getting a Windows GD with the proper support or something else?

Martin