Page MenuHomePhabricator

polygon appears at wrong place.
Closed, DeclinedPublic

Description

In http://www.mediawiki.org/wiki/Extension:ImageMap the clickable
point bear no relationship to the image and the data provided, at
least in Opera 9.01 (which is pretty current)

Also, with this image (of Mediawiki Commons) the polygon does not
work - it should cover the red area less the text overlapping into
it.

<imagemap>
Image:Rodenkirchen_Stadtteil_Zollstock.png|Doh litt Zollshtogg_en
[[Zweijte Stadtbezirrek (Kölle)|singem Stadtbezirrek]]|thumb
poly 60,11 22,101 57,124 57,113 58,111 58,104 73,104 73,100 67,98
69,86 74,85 74,78 71,78 72,68 89,68 86,60 75,60 75,54 83,54 80,48
70,48 70,40 81,40 78,27 [[Zollshtock (Veedel)|Dat Veedel
Zollshtogg_en Kölle]]
</imagemap>

Maybe the thumb size set via user preferences is not used.


Version: unspecified
Severity: normal
URL: http://www.mediawiki.org/wiki/Extension:ImageMap

Details

Reference
bz8923

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:36 PM
bzimport added a project: ImageMap.
bzimport set Reference to bz8923.
bzimport added a subscriber: Unknown Object (MLST).

It seems to me that you have used coordinates of the thumbnailed image. But you
has to use them from the original size. Try this:

<imagemap>
Image:Rodenkirchen_Stadtteil_Zollstock.png|thumb|Doh litt Zollshtogg_en[[Zweijte
Stadtbezirrek (Kölle)|singem Stadtbezirrek]]
poly 96 19 37 160 88 191 113 158 102 158 113 107 139 105 118 42 96 16
[[Zollshtock (Veedel)|Dat Veedel Zollshtogg_en Kölle]]
</imagemap>

I had entered a series of coordinates, each being a comma
separated pair.

Thank you for pointing me to my error.

Sorry, I am unable to obtain any useful results. The numbers
you give (though they work describing a polygon in parts
similar to the wanted one, only for the full image, not the
thumbnail) bear no relationship of any type to the pixel
counts displayed by graphics program.

Trying to define and add polygons for the other areas spoils
eveything completely. Clickable areas shrink to line-shape.

I assume some strange measurement being used which is not
pixels. Documenation @ http://www.mediawiki.org/wiki/
Extension:ImageMap does not tell how measurements are made.

[[de:Benutzer:Raymond/imagemap 8923]] works for me as expected (with exception
of thumb title, but this is another bug?!)

It does not work for me.

  1. There is no way, to determine which figures are to be noted

as coordinates.
1.1. Documantation does not describe which units are to be
used.
1.2. Obviously it is not pixels.
1.3. Can you explain @ http://www.mediawiki.org/wiki/ how to
get the figures?

  1. When the image is scaled, clickable areas are scaled

differently.

This is not working, at least not with Opera 9.01

Example in comment #4 works just fine in Opera 9.02.

Coordinates are pixels in the full-size source image.

Gilles raised the priority of this task from Medium to Unbreak Now!.Dec 4 2014, 10:11 AM
Gilles moved this task from Untriaged to Done on the Multimedia board.
Gilles lowered the priority of this task from Unbreak Now! to Medium.Dec 4 2014, 11:22 AM