I am using the GD library to create free customized wallpapers, animations, etc. It's all working quite nicely. Now, I would like to add comments to the file before sending it to the browser (e.g. Made by xxx at www.yyy.com).

I know php can do exim on jpegs but the comments in the manual mention that you can only modify them IF they already exist. Can't add them.

I don't know much about png. (just learned a lot over the last week from a reply by weedpacket)

As for gif, I can't find anything in php/gd that's even remotely related.

A search here didn't bring up anything of importance.

Am I missing something so obvious that I'm going to slap myself? Can someone point me in the right direction? Or is this just not possible and thus just give up?

    You can't really find anything about PHP/GD on GIF's because it is no longer supported.

    You could use [man]imagettftext[/man] to do what you want for PNG and JPEG's.

      Are you needing to write to the metatags of the image file (like exif?) or are you just talking about painting a string onto an existing image (like a watermark)?

      Originally posted by Kudose
      You can't really find anything about PHP/GD on GIF's because it is no longer supported.

      You could use [man]imagettftext[/man] to do what you want for PNG and JPEG's.

      If you have gd-2.0.28 then you have GIF support (it was added again in mid 2004).

        Thank you Kudose and MikeSnead.

        METATAGS!! That's the word! My brain was on vacation without notifying me.... 😛

        Right, so, I'm trying to add metatags to my gifs, jpegs, and pngs.

        Yes, my server has a newer GD version with gif support added again. My server hasn't compiled in GD truetype support, so I've munged it so that font work is done on another server (which doesn't have jpeg support!) and returns an image. It is further watermarked, transparencies set, images merged and the works. All of this is currently in working order.

        That just leaves me with metatags....

          Write a Reply...