Page 1 of 1

Re: Crop image

Posted: 2008-02-03T17:42:46-07:00
by anthony
When I need some image coordinates I use a image editor like XV or GIMP to let me find and note such coordinates.


It would be nice if "display" could let you click on an image and have it output coordinates for you.


Interactive coordinate selection is going to become more necessary in IM as we reach a point where we need to select points for Image registration (for image distortions) or areas for masks (FFT noise removal masking, and Liquid Rescaling preserve/remove masks).

Re: Crop image

Posted: 2008-02-04T05:56:49-07:00
by Bonzo
There is a method in php to get a position on the page; if you look at http://www.rubblewebs.co.uk/imagemagick/trials/imap.php and click on the image you will see the cordinates in the address bar on the next page.
I suppose you could do this twice to an image and get the 2 corners that way - I can not remember how I did it now.

From memory there is a javascript piece of software that does what you want but I do not have the link any longer.

Found some links while searching google for "Javascript crop image" including this one that uses ImageMagick: http://mondaybynoon.com/2007/01/22/crop ... agemagick/