finding pixel position in imagemagick

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
manit
Posts: 123
Joined: 2009-01-30T22:31:26-07:00

finding pixel position in imagemagick

Post by manit »

i opened an image using GUI of imagemagick in ubuntu 16.04.3(64bit) .
Now I zoomed into the image .
I want to know the pixel position of my mouse .
Actually my aim is to manually locate pixel position of a particular chessboard square corner in image .
In paintbrush in windows , it is simply hovering the mouse over desired point and status bar shows the x,y coordinate.
How do I do this in imagemagick ?

Thanks.


PS:I will post imagemagick version as soon as I can.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: finding pixel position in imagemagick

Post by fmw42 »

I do not know if this will work on your system. One used to be able to do something like option click or command click and get the cursor location. But on my system if I select EDIT then CUT and move the cursor over the image, the X,Y location of the cursor shows. I am on a Mac using XQuartz. But the X11 that I used to have before Apple stopped using it, worked the older way.
manit
Posts: 123
Joined: 2009-01-30T22:31:26-07:00

Re: finding pixel position in imagemagick

Post by manit »

sorry for late reply.
could not get internet access.
Now, I have tried it and found following.
I clicked and chose edit>cut.Then mouse position appears in top left corner.
But, the issue is it does not show absolute pixel position of the image.
Suppose , i zoom in 16 times in an image then i should observe same value of x,y over a square block in window. Here, a little mouse shift rapidly changes the coordinates visible in top left corner of window. I think, if I want to find pixel position of image then I should divide visible coordinates by magnification factor.
So, it is not useful in my case.
Thanks.

Can you suggest anything else ?
Post Reply