Simple Machines Community Forum

General Community => Scripting Help => Topic started by: demize on July 27, 2008, 09:02:08 AM

Title: PHP Dynamic Images
Post by: demize on July 27, 2008, 09:02:08 AM
Well, I'm trying to make a dynamic image. But I want it just plain text. So, 2 things:

1. How can I make an image with PHP that is only text?
2. Is it possible to use a script located somewhere else on the internet? (I doubt it)

Thanks!
Title: Re: PHP Dynamic Images
Post by: Jeoh on July 27, 2008, 09:11:21 AM
Quote from: demize on July 27, 2008, 09:02:08 AM
Well, I'm trying to make a dynamic image. But I want it just plain text. So, 2 things:

1. How can I make an image with PHP that is only text?
2. Is it possible to use a script located somewhere else on the internet? (I doubt it)

Thanks!

You can use the GD Graphics Library for both.

http://nl.php.net/manual/en/ref.image.php
Title: Re: PHP Dynamic Images
Post by: demize on July 27, 2008, 08:58:06 PM
My server has ImageMagick, does that run off GD?
Title: Re: PHP Dynamic Images
Post by: JayBachatero on July 30, 2008, 09:50:08 AM
Take a look at this tutorial.  Not directly what you want but you can learn from it.  http://devzone.zend.com/node/view/id/1269
Title: Re: PHP Dynamic Images
Post by: Dragooon on July 30, 2008, 10:23:13 AM
Quote from: demize on July 27, 2008, 08:58:06 PM
My server has ImageMagick, does that run off GD?
If your server runs ImageMagick it should be having GD. And IM and GD are different, they both function differently(Although IM works better :))