thedevilspride
09-19-2003, 10:36 PM
Hi,
I'm trying to make a script where:
1) grabs info from a database - a number e.g. 001005001003004005
001: Base colour
first 005: Eye type and colour
001: nose type
003: mouth type
004: hair type
second 005: hair colour
2) Check to see if the image "001005001003004005.ext" exists
If it does exist, put it into an array.
if it doesn't, create it!
3) grab each corresponding image (each image has the exact same height and width)
4) Lay the images on top of each other to make a new image and
save as the file name as the one taken from the database.
I did a search and someone said that gif's cannot be opened, but if they were in png format could I specify the transparent colour in each layer and re-save as a png (i'm positive they support transparencies)
can anyone help?
EDIT: BTW I have version 4.3.2 of php and have ImageMagick installed
I'm trying to make a script where:
1) grabs info from a database - a number e.g. 001005001003004005
001: Base colour
first 005: Eye type and colour
001: nose type
003: mouth type
004: hair type
second 005: hair colour
2) Check to see if the image "001005001003004005.ext" exists
If it does exist, put it into an array.
if it doesn't, create it!
3) grab each corresponding image (each image has the exact same height and width)
4) Lay the images on top of each other to make a new image and
save as the file name as the one taken from the database.
I did a search and someone said that gif's cannot be opened, but if they were in png format could I specify the transparent colour in each layer and re-save as a png (i'm positive they support transparencies)
can anyone help?
EDIT: BTW I have version 4.3.2 of php and have ImageMagick installed