Extension:ImageMapConversion

What can this extension do?
The Image Map Conversion Special Page is used to convert HTML format image map information into inline Imagemap format. The input to this utility can be:
 * HTML code containing image map information
 * Files created by image map utilities (listed below) containing image map HTML code
 * Files compatible for input to file-based image maps or to [[Extension:ImageMap_%28McNaught%29|Shannon McNaught's under the   directory, and place all the downloaded files in the   folder.
 * 1) Add the following to LocalSettings.php: require_once( "$IP/extensions/ImageMapConversion/ImageMapConversion.php" );
 * 2) If you are using the ImageMap (Alternate) extension, ensure that you update it to the latest version.  If you receive a PHP error that a function in php is already defined, that may mean you are using an older version of ImageMap (Alternate).

Changes to LocalSettings.php
Add the following to the end of the LocalSettings.php file:

require_once( "$IP/extensions/ImageMapConversion/ImageMapConversion.php" );

Download

 * NOTE: this SVN site is down until at least Friday Feb 15 at 00:00 UTC due to problems with the local telco.

Please download the files from: my SVN site

Upgrading from the beta version
The current version no longer requires JavaScript in MediaWiki:Common.js. If you are replacing the beta version with the current one, delete the JavaScript from MediaWiki:Common.js.

The code to delete from MediaWiki:Common.js is: /* START of javascript for the ImageMapConversion extension */ function imagemapGetFilePathAndName { document.getElementById('localfile').value = document.getElementById('inputHtml').value; return; } /* END of javascript for the ImageMapConversion extension  */ If you are using an older version of MediaWiki (prior to 1.9) you will have put this JavaScript in MediaWiki:Monobook.js.

HTML Image Map Generators
There are utilities available that will generate the client-side map and area statements with the coordinate data. You can specify the image and select points on the image to define a shape. The utility will calculate the coordinates of these points and write out the appropriate HTML statements. This makes it easy to generate the map files. Here are a few examples - none of these are specifically sanctioned and are only offered as suggestions. You can use a search engine to find others.


 * Clickable Image Map Maker. This web page allows the user to select an image file on his own local hard drive, then creates a second page using that image, and allows the user to very quickly generate the HTML code for an imagemap to be used in his own files. It also offers some handy pop-up menus to speed the process of coding the actual href. Complicated maps can be created in less than a minute (no kidding). Requires a Javascript and frames capable browser, designed and tested on a Mac using Netscape Navigator.
 * Mapedit is a WYSIWYG editor for imagemaps, available for Microsoft Windows and the X Window System. Use Mapedit to generate, or convert to, NCSA, CERN, or client-side map files.
 * Meracl ImageMap Generator is a free map Imagemap generator.
 * GIMP - The GNU Image Manipulation Program