Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dynamic image cropping

Status
Not open for further replies.

hc1619

Programmer
Feb 17, 2004
62
NZ
I have a dating site where I wish to crop all the photos that people upload.. I want to crop around their face so the xy are going to be different every time.

I have a custom tag that can crop image for me, but I need to supply the xy for where the crop is to begin and also the height and width of the size of the crop of the image.

I once saw someone else do this once... the image appeared on the page, they clicked once and then dragged a made a square over the part they wanted to crop, and the all the xy coordinates and height and widths got saved and then that info could be passed into the custom tag.

Does anyone know how I can do this?? Ie, find a way to dynamically get the coordinates I need. I'm assuming this needs to be done in javascript or DHTML or something... but i'm hoping someone here might know.
 
I've personally never seen JS that can do that, i'm not saying its impossable, but it sounds more like a java applet.

Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so.
-Douglas Adams (1952-2001)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top