Re: voucher manipulation

From: Date: Tue, 24 Apr 2007 12:25:29 +0000
Subject: Re: voucher manipulation
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-253570@lists.php.net to get a copy of this message
On 4/24/07, Steven Macintyre <steven@steven.macintyre.name> wrote:
Alo, I have a client looking to do the following; There is a standard "voucher" design, in the format of JPG ... now ... they wish to create a voucher system where if you reach so many points etc you can claim a voucher (using the design) with a expiry date ... current + 30days and a unique voucher number. Now, I have looked at ImageCreateFromjpeg etc ... but ... cant figure out how to place the text on it within the specified areas. It will then be emailed to the user. Does anyone know of an idea out there already I can take a look at ... or some advice? Kind regards, Steven Macintyre
You're at the right start, you should create a image stream with ImageCreateFromJpeg, and then you should write text to it with one of the following functions: ImageTtfText ImagePsText ImageFtText and then save it, or output it. (ImageJpeg for example) Tijnema

« previous php.general (#253570) next »