image-map-resizer icon indicating copy to clipboard operation
image-map-resizer copied to clipboard

Figuring out coordinates

Open mr339 opened this issue 3 years ago • 4 comments

How to figure out the coordinates of a part of the image(for example: if there's a symbol in the middle of the image that i want to make clickable)? is it hit and trial or is there any documentation for it?

mr339 avatar Aug 30 '22 06:08 mr339

Count pixels in the full sized image

Sent from my iPhone.

davidjbradshaw avatar Aug 30 '22 07:08 davidjbradshaw

Count pixels in the full sized image -- Sent from my iPhone.

thanks, also what does the coordinates of rect in coor="10,10,30,10" mean? is it "x-coord, y-coor, length of rect, height of rect"?

mr339 avatar Aug 30 '22 08:08 mr339

I usually pull the image up in gimp and hover over where I want the map. Gimp gives a pixel based cursor position.

peacesoup avatar Feb 22 '23 16:02 peacesoup

what does the coordinates of rect in coords="10,10,30,10" mean?

For rect it is x1,y1,x2,y2 and then a rectangle will drawn between (x1, y1) and (x2, y2).

From the spec:

  • x1: the distance from the left edge of the image to the left side of the rectangle
  • y1: the distance from the top edge to the top side
  • x2: the distance from the left edge to the right side
  • y2: the distance from the top edge to the bottom side

NicolaiSoeborg avatar Aug 27 '23 21:08 NicolaiSoeborg