Image/Font library wanted.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
josamoto
Forum Commoner
Posts: 41
Joined: Fri Aug 24, 2007 6:57 am
Location: South Africa
Contact:

Image/Font library wanted.

Post 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!!!
User avatar
josamoto
Forum Commoner
Posts: 41
Joined: Fri Aug 24, 2007 6:57 am
Location: South Africa
Contact:

Re: Image/Font library wanted.

Post by josamoto »

Just and idea...is it possible to leverage the graphics rendering capabilities of the PHPGTK? (In a web application)
User avatar
josamoto
Forum Commoner
Posts: 41
Joined: Fri Aug 24, 2007 6:57 am
Location: South Africa
Contact:

Re: Image/Font library wanted.

Post 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?
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: Image/Font library wanted.

Post by requinix »

There is an Edit button by your post ;)

Have you looked into ImageMagick?
User avatar
josamoto
Forum Commoner
Posts: 41
Joined: Fri Aug 24, 2007 6:57 am
Location: South Africa
Contact:

Re: Image/Font library wanted.

Post 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.
Post Reply