Re: [GD-DEVEL] total newbie: simple image manipulation

[email protected] (Pierre)
Newsgroups php.gd.devel
Message-ID <[email protected]>
Hi,

On 3/25/07, FND <[email protected]> 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 the
>     bottom 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.