almightyegg Posted April 4, 2007 Share Posted April 4, 2007 Just a question.... Could I have a link like: draw.php that would turn out nothing but then if I add: draw.php?model=black&hair=buzzcut&glasses=shades it would take several images and layer them on top of eachother (like model_black.jpg hair_buzzcut.jpg etc..) Is it possible ??? Quote Link to comment Share on other sites More sharing options...
hitman6003 Posted April 4, 2007 Share Posted April 4, 2007 yes. Use the GD functions to generate the image. Then use the url of the page as the "src" attribute of your img tag. Quote Link to comment Share on other sites More sharing options...
almightyegg Posted April 4, 2007 Author Share Posted April 4, 2007 GD functions?? What are they?? Quote Link to comment Share on other sites More sharing options...
dough boy Posted April 4, 2007 Share Posted April 4, 2007 http://us2.php.net/gd Quote Link to comment Share on other sites More sharing options...
almightyegg Posted April 4, 2007 Author Share Posted April 4, 2007 Cheers Dough Boy but I went to download the GD Library and found that it could only be downloaded in: .tar.gz .tar.bz2 and I don't know how to open these files ??? Quote Link to comment Share on other sites More sharing options...
dough boy Posted April 4, 2007 Share Posted April 4, 2007 those are designed to be extracted on your server. are you on a hosted plan? check to see if they have gd installed. if they don't, not sure if you can use it. If you are allowed to install it, you could also extract the files on your local computer using www.rarsoft.com. I can't remember, but I think you can also use imagemagick as well as gd but it is not as "integrated". Quote Link to comment Share on other sites More sharing options...
almightyegg Posted April 4, 2007 Author Share Posted April 4, 2007 I used rarsoft and it is all unzipped, but I can't locate a file telling you what to do? Do I upload it to my server?? Quote Link to comment Share on other sites More sharing options...
dough boy Posted April 4, 2007 Share Posted April 4, 2007 I believe that GD has to be compiled with PHP. As I was saying, if you do not have root access to your server, you will have to have your host do it for you. The link I gave you was more for how to use it if it is installed. Quote Link to comment Share on other sites More sharing options...
almightyegg Posted April 4, 2007 Author Share Posted April 4, 2007 Can it be done without GD Library, i seems very complicated for the simpality of what I need... Quote Link to comment Share on other sites More sharing options...
dough boy Posted April 4, 2007 Share Posted April 4, 2007 I doubt it. Image manipulation appears to require binary changes. if that is "all" you are doing and they are the same sizes, you could set the yellow image as the background image, then set the green image as a image in the table cell (just give it clear edges). Or you could use css. Quote Link to comment Share on other sites More sharing options...
almightyegg Posted April 4, 2007 Author Share Posted April 4, 2007 Well, an image could have 20 different layered images... so could I not write a script to say if($hat == pimp) it will add a pimp hat to the picture Quote Link to comment Share on other sites More sharing options...
dough boy Posted April 4, 2007 Share Posted April 4, 2007 Who is your host? That would be the first place to start. Quote Link to comment Share on other sites More sharing options...
almightyegg Posted April 4, 2007 Author Share Posted April 4, 2007 www.prolinkhosting.com Quote Link to comment Share on other sites More sharing options...
almightyegg Posted April 9, 2007 Author Share Posted April 9, 2007 Any ideas guys? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.