Re: [GD-DEVEL] total newbie: simple image manipulation
| From: | Pierre | Date: | Sun, 25 Mar 2007 12:35:52 +0000 |
| Subject: | Re: [GD-DEVEL] total newbie: simple image manipulation | ||
| References: | 1 | Groups: | php.gd.devel |
| Request: | Send a blank email to php-gd-devel+get-153@lists.php.net to get a copy of this message | ||
Hi,
On 3/25/07, FND <Ace_NoOne@gmx.net> wrote:
Hello there, A friend told me about LibGD as a good library for image manipulation. However, I have little to no experience in working with libraries such as this one, so I'd need some help in getting started. I'm writing a script in AutoHotkey (a Windows scripting language)*, and what I need to do is a) convert a PNG image to BMP, and b) embed a text caption in the image (e.g. adding the source URL to thebottom right of the image).
While this should be a simple task (I guess), I have no idea where to start.... Could someone please point me in the right direction?I'm not sure with which language you will use GD, however, these operations are quite easy to do with GD: - open the PNG image file (gdImageCreateFromPng) - draw your text (gdImageStringFTEx) - save as BMP (gdImageWBMP) See the respective manual pages, there is code snippet in each of them (http://www.libgd.org/Documentation). Feel free to ask again if you need more details, --Pierre