Upload photo and preview

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
himesh
Forum Newbie
Posts: 2
Joined: Tue Apr 21, 2009 8:03 am

Upload photo and preview

Post 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
skullmunky
Forum Newbie
Posts: 12
Joined: Fri Apr 17, 2009 10:25 pm

Re: Upload photo and preview

Post by skullmunky »

retrieving and displaying the image is pretty standard; to crop and composite, look at the "gd" library.
himesh
Forum Newbie
Posts: 2
Joined: Tue Apr 21, 2009 8:03 am

Re: Upload photo and preview

Post by himesh »

nice 1, thanks
Post Reply