Crop image

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Crop image

Post 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).
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: Crop image

Post 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/
Post Reply