Page 1 of 1

Upload photo and preview

Posted: Tue Apr 21, 2009 8:18 am
by himesh
I am creating a php driven website for an e-commerce store. One function of the website is for the user to upload a photo and for it to be previewed on a pre-defined image.

Is this possible in php?, i have an image upload script but cant figure out how to retrieve the image from the database, crop and then place the image over the background image which will be in the form of a tshirt or something similar.

Thanks

Himesh

Re: Upload photo and preview

Posted: Tue Apr 21, 2009 8:48 am
by skullmunky
retrieving and displaying the image is pretty standard; to crop and composite, look at the "gd" library.

Re: Upload photo and preview

Posted: Tue Apr 21, 2009 9:05 am
by himesh
nice 1, thanks