Page 1 of 1

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

Posted: Mon Feb 19, 2007 8:50 am
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

Posted: Mon Feb 19, 2007 8:55 am
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.)

Posted: Mon Feb 19, 2007 10:52 am
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