a tool like:


but it needs to permit me to draw a shape on the screen.

then it should tell me the dimensions + the x-y coordinates

is there such tool ?

closed as unclear what you're asking by Toby Speight, countermode, Archemar, thrig, GAD3R Feb 27 '17 at 15:23

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • Do you mean you want to move the mouse, as in "click and drag", to draw a rectangle on the desktop, and have some program then tell you what its size is? – Gypsy Spellweaver Feb 27 '17 at 11:12
  • @Gypsy Spellweaver, yes the rectangle can simply be outlines. does not have to be a filled box. I want the size of it ( in pixels ) also.. if it can include the X and Y coordinates on the screen. that would be extra help. – user218169 Feb 27 '17 at 11:19
  • Perhaps soon as the rectangle drawn is complete.. the rectangle can disappear.. and I can return to the command prompt to see the data. – user218169 Feb 27 '17 at 11:20

A simple tool is the import command from ImageMagick. Simply provide an output filename:

$ import /tmp/out.png

and it will grab the mouse and show an appropriate cursor. Press button 1 and drag out a rectangle which will be shown as a wire frame. Let go and the file will be created. You can get the info from this file:

$ identify /tmp/out.png
/tmp/out.png PNG 1515x14 1920x1080+24+15 ...

The rectangle in this example was 1515 by 14 pixels, with top-left offset of 24 and 15 on the screen.