Re: Creating Images in php
- From: Jerry Stuckle <jstucklex@xxxxxxxxxxxxx>
- Date: Sat, 26 Aug 2006 20:03:26 -0400
jackpod wrote:
Jerry Stuckle wrote:
jackpod wrote:
Hi All,
I would appreciate help in developing a strategy for coding the
following requirements:
1) A user inputs his/her first and last name and selects which country
they are from from a drop-down list.
2)This first name, last name and country name are written to a
database.
3)The first name, last name and an image of the selected country's flag
are combined into one image of size x pixels wide by y pixels in
height.
Your help in figuring out a strategy for requirement #3 above would be
much appreciated.
Get a graphical copy of the person's country flag and use the PHP image
functions to superimpose their name on the graphic. See
http://www.php.net/manual/en/ref.image.php
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@xxxxxxxxxxxxx
==================
Jerry,
Thanks for the reference. I have an image of each country's flag which
is of size 20 x 10. Being relatively new to php, I am not quite sure
what is the best way to use the GD Library to merge this image with an
image of the person's name. Thanks in advance.
I don't think your image is 20x10 pixels, so I have no idea what it actually is. And not knowing if you need to resize the image or not, the format you have, the format you want it in or any of a dozen other things, it's hard to say.
But the documentation is pretty good. For instance, imagecreate will create an image, imagechar will write a string to the image (it requires a colors created with imagecolorallocate), etc.
The notes have some good examples of what you can do with them.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@xxxxxxxxxxxxx
==================
.
- References:
- Creating Images in php
- From: jackpod
- Re: Creating Images in php
- From: Jerry Stuckle
- Re: Creating Images in php
- From: jackpod
- Creating Images in php
- Prev by Date: Customisable map for Joomla
- Next by Date: Retrieving information from Active Directory through OLE-DB
- Previous by thread: Re: Creating Images in php
- Next by thread: Re: Creating Images in php
- Index(es):
Relevant Pages
|