Extension talk:ImageMapConversion

Updated for MW 1.11
I noticed a slight problem with MW1.11 - an error message due to one function (loadMessages) not returning a valid value. It now returns true.

If you choose to upgrade, just download and replace ImageMapConversion_body.php; it's the only one with a change in the code.

--Michael Daly 19:20, 28 January 2008 (UTC)

What does this extension do?
I am compiling image map resources and info here:
 * commons:Commons:Image map resources

I do not understand what this extension does. How does one use it to convert an image map found on the web to one that can be used on a MediaWiki-based wiki? I figured out how to convert an image map manually, but an automated process would be very helpful. --Timeshifter 01:58, 31 August 2008 (UTC)


 * The extension installs a special page on the wiki. The special page has a text area (with a Browse button) that allows the user to input the path and file name (on the local computer) of a file containing an HTML image map.  It then takes the HTML format image map and converts it to the format required by the Imagemap extension.


 * The conversion is simple, since the HTML formats and the Imagemap formats pretty much map one-to-one. For example, the following HTML:


 * 


 * converts to:


 * poly 520 80 606 56 615 100 565 115 Prince Edward County


 * All that's done is to remove the HTML and the commas and interpret the href and title.


 * The extension can take an entire HTML page file. It will ignore everything before the first image map statement and stop after the closing image map statement (hence it will do only one image map in a file; multiple image maps in one HTML file will require the user to split the HTML file manually).


 * In processing the HTML, it will skip any nasty HTML, preventing the injection of malicious HTML.
 * --Michael Daly2 18:46, 31 August 2008 (UTC)