Page MenuHomePhabricator

Image map is not clickable when SVG used
Closed, InvalidPublic

Description

Author: lcarsdata

Description:
When an SVG image is used on an image map the image renders, however it is not clickable. This is preventing superceeding images on the Wikimedia Commons.


Version: unspecified
Severity: major

Details

Reference
bz10073

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:52 PM
bzimport added a project: ImageMap.
bzimport set Reference to bz10073.

Can you provide an example please?

Assigned to extension developer

You need to specify coordinates relative to the nominal source image size, not relative to the thumbnail size. The coordinates will be scaled appropriately before output. For example:

<imagemap>
Image:Mood dice.svg|100px
rect 0 0 500 500 [[Main Page]]
</imagemap>

This is a feature, not a bug.

Gilles raised the priority of this task from Medium to Unbreak Now!.Dec 4 2014, 10:12 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:23 AM