Uploading and resizing an image ?!?!?!?

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
popcop
Forum Newbie
Posts: 21
Joined: Fri Jan 30, 2004 10:42 am

Uploading and resizing an image ?!?!?!?

Post by popcop »

i have a form on my site for users to register to the site.

Im about to add the option for them to add a photo to there details which gets sent to the database.

once an image is selected and all the form is filled out the user then clicks submit and sends the data to the database.....but, before its all gets sent i want to use
http://flashrocket.worldoptimizer.com/a ... eased-lgpl

basically its to select a part of the image u want to use as ur image on the site.

Can anyone help me set this up so that when the image is selected and the section is selected it will send that to the database all with their details.

i hope ive explained that well enough

cheers
Last edited by popcop on Mon Feb 19, 2007 9:05 am, edited 1 time in total.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

It would seem to be most user-friendly to use Javascript to play around with some CSS (and set hidden values.) Although you should provide a couple of text fields to accept positioning numbers so the user can set it up themselves (especially if Javascript is disabled.)
SteveMellor
Forum Commoner
Posts: 25
Joined: Mon Jun 26, 2006 7:43 am

Post by SteveMellor »

I actually did something very similar to this in Flash. The problem is that depending on the size of your original picture (the one thing you don't have control over) will depend on the quality of the image that you finally get. I would suggest thinking about just providing a set image size and letting people decide before uploading the type of image they want. You can then process the image with GD or use a class like
thie one here!.

It's just a thought of course
Post Reply