How to get 'Too Late !' text across image ?

GD and GD2 are useful libraries for creating graphics on-the-fly. Discuss your PHP GD and GD2 scripts here.

Moderators: onion2k, General Moderators

Post Reply
mully
Forum Newbie
Posts: 1
Joined: Tue Mar 28, 2006 7:00 am

How to get 'Too Late !' text across image ?

Post by mully »

Hi there,

I run a reuse website and wish to stamp any images for things that are reused in large bright text with the words 'Too Late !' trouble is I am a newbie to PHP.

The script I use catches and uploads images, these are can be any size within certain admin defined boundaries. Then the script makes 1 copy and reduces it to a thumbnail size image leaving two images, one being a thumbnail and the other the larger original.

I figure I could force a resize on the original image to a standard large size and then layer a pic with these words on a transparent background over the top, does this sound like a reasonable solution ? It would mean me having two fixed size layer files one for the thumbnail and one for the larger image. Has anyone any code that does something like this or done it themselves in the past ?

Would be great to get some advice on this.

The site uses GD2 and PHP off a MySQL database.

Thanks in advance,
Mully :)
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

Moved to PHP-Gd.
User avatar
phpScott
DevNet Resident
Posts: 1206
Joined: Wed Oct 09, 2002 6:51 pm
Location: Keele, U.K.

Post by phpScott »

If you are already some what familliar with the GD2 Library look at ImageCopyMerge()
Post Reply