Page 1 of 1

Image/Font library wanted.

Posted: Tue Nov 11, 2008 12:11 am
by josamoto
Hi everyone!!!

I've been using GD2 for a couple of projects relating to graph rendering, and some other forms of image manipulation with PHP. I't appears that GD2 does not get updated often, and in my own personal experience, it was hell working with fonts, figuring out text metrics and things like that. It works but it can do much better.

GD2 has very limited anti-aliasing, and very basic drawing functions. Things like drawing rounded rectangles, fill gradients etc. are hard to achieve, as I had to write my own code for that. I guess what I'm asking is for a proper graphics API in PHP.

Is there an optional image library available for PHP that is updated, maintained and supported more often? Maybe a C/C++ library that can be compiled or integrated into PHP as an extension?

The advice is much appreciated. Thanks!!!

Re: Image/Font library wanted.

Posted: Tue Nov 11, 2008 12:19 am
by josamoto
Just and idea...is it possible to leverage the graphics rendering capabilities of the PHPGTK? (In a web application)

Re: Image/Font library wanted.

Posted: Tue Nov 11, 2008 12:32 am
by josamoto
And one last question:
Is it maybe a good idea to perhaps use the Ming extension to render an SWF and somehow convert it to PNG/JPG? Can Ming save it's output as a raster image?

Re: Image/Font library wanted.

Posted: Tue Nov 11, 2008 12:58 am
by requinix
There is an Edit button by your post ;)

Have you looked into ImageMagick?

Re: Image/Font library wanted.

Posted: Wed Nov 12, 2008 1:14 am
by josamoto
I have indeed, but if I can remember correctly, ImageMagick doesn't have any functions for dealing with fonts, and does not have geometric drawing functions. Please do correct me if I'm wrong.