Last modified: 2007-02-08 23:46:59 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T10923, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 8923 - polygon appears at wrong place.
polygon appears at wrong place.
Status: RESOLVED WORKSFORME
Product: MediaWiki extensions
Classification: Unclassified
ImageMap (Other open bugs)
unspecified
All All
: Normal normal with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
http://www.mediawiki.org/wiki/Extensi...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-02-08 17:07 UTC by Purodha Blissenbach
Modified: 2007-02-08 23:46 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Purodha Blissenbach 2007-02-08 17:07:40 UTC
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.
Comment 1 Raimond Spekking 2007-02-08 17:20:36 UTC
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>
Comment 2 Purodha Blissenbach 2007-02-08 17:30:03 UTC
I had entered a series of coordinates, each being a comma 
separated pair.

Thank you for pointing me to my error.
Comment 3 Purodha Blissenbach 2007-02-08 18:50:13 UTC
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.
Comment 4 Raimond Spekking 2007-02-08 18:56:01 UTC
[[de:Benutzer:Raymond/imagemap 8923]] works for me as expected (with exception
of thumb title, but this is another bug?!)
Comment 5 Purodha Blissenbach 2007-02-08 23:21:53 UTC
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?

2. When the image is scaled, clickable areas are scaled 
differently.

This is not working, at least not with Opera 9.01
Comment 6 Brion Vibber 2007-02-08 23:46:59 UTC
Example in comment #4 works just fine in Opera 9.02.

Coordinates are pixels in the full-size source image.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links