469,292 Members | 1,350 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,292 developers. It's quick & easy.

Mouse Click Co-ordinates

I am using a server-side component for resizing/cropping images. Cropping
is possible if I know the co-ordinates. I want to be able to offer users
the ability to specify their own co-ordinates. It seems to me that the
easiest way to do this is to try to partially emulate an image editing app's
Marquee tool, where a user clicks on an image to define the top left point
and drags and releases at the bottom right point. My questions are:

1. What's the best way to display the image to get these measurements? (It's
own div? Iframe? As an ImageMap? Other way?)
2. How do I capture the two pairs of coordinates? (Having got them, I'm
comfortable passing them server-side as QueryString values)

I expect users will have IE 5.5 +, Firefox 1.5 +, Safari

Thanks all

--
Mike
Jul 29 '06 #1
2 1528
Mike wrote:
I am using a server-side component for resizing/cropping images. Cropping
is possible if I know the co-ordinates. I want to be able to offer users
the ability to specify their own co-ordinates.
http://koivi.com/image-crop-selection/
--
David Dorward <http://blog.dorward.me.uk/ <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Jul 29 '06 #2

"David Dorward" <do*****@yahoo.comwrote in message
news:ea*******************@news.demon.co.uk...
Mike wrote:
>I am using a server-side component for resizing/cropping images.
Cropping
is possible if I know the co-ordinates. I want to be able to offer users
the ability to specify their own co-ordinates.

http://koivi.com/image-crop-selection/

Thanks David. It's nice - but your suggestion helped me revise my googling
more successfully. I found this one (among 2 or 3 others):

http://www.defusion.org.uk/demos/060519/cropper.php

It's the doggy's dangly bits :-)

--
Mike
Jul 29 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Jun | last post: by
2 posts views Thread by Benoit Martin | last post: by
4 posts views Thread by Andreas Müller | last post: by
25 posts views Thread by Romanise | last post: by
7 posts views Thread by Steve | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.