CINXE.COM
15.2. ImageMap
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>15.2. ImageMap</title> <link rel="stylesheet" href="gimp-help-plain.css" type="text/css" /> <link rel="stylesheet" href="gimp-help-screen.css" type="text/css" /> <link rel="stylesheet" href="gimp-help-custom.css" type="text/css" /> <link rel="alternate stylesheet" href="gimp22.css" type="text/css" title="gimp22" /> <meta name="generator" content="DocBook XSL Stylesheets Vsnapshot" /> <link rel="home" href="index.html" title="GNU Image Manipulation Program" /> <link rel="up" href="filters-web.html" title="15. Web Filters" /> <link rel="prev" href="filters-web.html" title="15. Web Filters" /> <link rel="next" href="gimp-filter-semi-flatten.html" title="15.3. Semi-Flatten" /> </head> <body> <div class="navheader"> <table width="100%" summary="Navigation header"> <tr> <th colspan="3" align="center">15.2. ImageMap</th> </tr> <tr> <td width="20%" align="left"> <a accesskey="p" href="filters-web.html"> <img src="images/prev.png" alt="Prev" /> </a> </td> <th width="60%" align="center">15. Web Filters</th> <td width="20%" align="right"> <a accesskey="n" href="gimp-filter-semi-flatten.html"><img src="images/next.png" alt="Next" /></a></td> </tr> </table> <hr /> </div> <div class="sect2"> <div class="titlepage"> <div> <div> <h3 class="title"><a id="plug-in-imagemap"></a>15.2. ImageMap</h3> </div> </div> </div> <a id="idm49459" class="indexterm"></a> <a id="idm49463" class="indexterm"></a> <p> In Web sensitive images are frequently used to get some effects when defined areas are enabled by the pointer. Obviously the most used effect is a dynamic link to another web page when one of the sensitive areas is clicked on. This <span class="quote">“<span class="quote">filter</span>”</span> allows you to design easily sensitive areas within an image. Applications for website design have this as a standard function. In <acronym class="acronym">GIMP</acronym>, you can do this in a similar way. </p> <div class="sect3"> <div class="titlepage"> <div> <div> <h4 class="title"><a id="idm49468"></a>15.2.1. Overview</h4> </div> </div> </div> <p> This plug-in lets you design graphically and friendly all areas you want to delimit over your displayed image. You get the relevant part of html tags that must be merged into the right place in your page html code. You can define some actions linked to these areas too. </p> <p> This is a complex tool which is not completely described here (it works about like Web page makers offering this function). However we want to describe here some of the most current handlings. If you want, you can find a more complete descriptions in Grokking the GIMP with the link <a class="xref" href="bibliography.html#bibliography-online-grokking-gimp-imagemap" title="Grokking the GIMP (9.2 Clickable Image Maps)">[<abbr class="abbrev">GROKKING02</abbr>]</a>. </p> </div> <div class="sect3"> <div class="titlepage"> <div> <div> <h4 class="title"><a id="idm49473"></a>15.2.2. Activate the filter</h4> </div> </div> </div> <p> From an image window, you can find this filter through <span class="guimenu">Filters</span> → <span class="guisubmenu">Web</span> → <span class="guimenuitem">ImageMap…</span> </p> <p> The window is a small one, but you can magnify it. The main useful areas are: </p> <div class="itemizedlist"> <ul class="itemizedlist" style="list-style-type: bullet; "> <li class="listitem" style="list-style-type: disc"> <p> completely on the left are vertically displayed icons, one for pointing, three for calling tools to generate various shape areas, one to edit zone properties, and finally one to erase a selected zone; you can call these functions with the Mapping menu, </p> </li> <li class="listitem" style="list-style-type: disc"> <p> just on the right is your working area where you can draw all the shapes areas you want with the relevant tools, </p> </li> <li class="listitem" style="list-style-type: disc"> <p> on the right is displayed an icon vertical set; its use is obvious but a help pop-up gives you some information about each function, </p> </li> <li class="listitem" style="list-style-type: disc"> <p> finally, even on the right is a display area, as a property list of the created areas. A click on one item of the list selects automatically the corresponding shape in the working area, </p> </li> </ul> </div> </div> <div class="sect3"> <div class="titlepage"> <div> <div> <h4 class="title"><a id="idm49490"></a>15.2.3. Options</h4> </div> </div> </div> <div class="figure"> <a id="idm49492"></a> <p class="title"> <strong>Figure 17.409. Imagemap filter options</strong> </p> <div class="figure-contents"> <div class="mediaobject"> <img src="images/filters/web/imagemap.png" alt="Imagemap filter options" /> <div class="caption"> <p>Imagemap window</p> </div> </div> </div> </div> <br class="figure-break" /> <div class="sect4"> <div class="titlepage"> <div> <div> <h5 class="title"><a id="idm49499"></a>15.2.3.1. The Menu Bar</h5> </div> </div> </div> <p> The menu bar is similar to the image window menu bar, only a few menus or menu entries are different: </p> <div class="variablelist"> <dl class="variablelist"> <dt> <span class="term">File</span> </dt> <dd> <div class="variablelist"> <dl class="variablelist"> <dt> <span class="term">Save; Save As</span> </dt> <dd> <p> Contrary to other filters, this plug-in doesn't make an image but a text file. So you must save your work in a text format. </p> <div class="tip" style="margin-left: 0.5in; margin-right: 0.5in;"> <table border="0" summary="Tip"> <tr> <td rowspan="2" align="center" valign="top" width="25"> <img alt="[Tip]" src="images/tip.png" /> </td> <th align="left">Tip</th> </tr> <tr> <td align="left" valign="top"> <p> With <span class="guimenu">View</span> → <span class="guimenuitem">Source</span> you can preview this text file content. </p> </td> </tr> </table> </div> </dd> <dt> <span class="term">Open; Open recent</span> </dt> <dd> <p> In the plug-in you can open the saved text file. The areas defined in your file will be loaded and overdisplayed; if the displayed image is not the original one or not with the same size, <acronym class="acronym">GIMP</acronym> will ask you for adapting the scale. </p> </dd> </dl> </div> </dd> <dt> <span class="term">Edit</span> </dt> <dd> <div class="variablelist"> <dl class="variablelist"> <dt> <span class="term">Edit area info</span> </dt> <dd> <div class="figure"> <a id="idm49528"></a> <p class="title"> <strong>Figure 17.410. Editing an imagemap area</strong> </p> <div class="figure-contents"> <div class="mediaobject"> <img src="images/filters/web/imagemap-area.png" alt="Editing an imagemap area" /> </div> </div> </div> <br class="figure-break" /> <p> In the settings dialog you can edit the area information of a selected area. This dialog will pop up automatically whenever you create a new area. </p> </dd> </dl> </div> </dd> <dt> <span class="term">View</span> </dt> <dd> <p> This menu offers you special functions: </p> <div class="variablelist"> <dl class="variablelist"> <dt> <span class="term">Area list</span> </dt> <dd> <p> Here you can hide or show the selection area. </p> </dd> <dt> <span class="term">Source</span> </dt> <dd> <p> Here you see the raw data as you would save it to or read it from a file. </p> </dd> <dt> <span class="term">Color; Grayscale</span> </dt> <dd> <p> You can select the image mode here and work with a Grayscale display. </p> </dd> </dl> </div> </dd> <dt> <span class="term">Mapping</span> </dt> <dd> <p> You will seldom use this menu, since you can more easily access selection tools by clicking on icons on the left of the working area. </p> <div class="variablelist"> <dl class="variablelist"> <dt> <span class="term">Arrow</span> </dt> <dd> <p> The arrow here represents the Move tool. When activated tool is selected, you can select and move an area on the image. </p> <p> With a polygon, you can use the arrow to move one of the red points. Right-click on a segment between two red points to open a pop-up menu that offers, with several others, the possibility to add a new point. If you right-click on a red point, you can remove it. </p> </dd> <dt> <span class="term">Rectangle; Circle; Polygon</span> </dt> <dd> <p> These tools let you create various shape areas: click on the image, move the pointer, and click again. </p> </dd> <dt> <span class="term">Edit Map Info</span> </dt> <dd> <div class="figure"> <a id="idm49568"></a> <p class="title"> <strong>Figure 17.411. Editing the imagemap data</strong> </p> <div class="figure-contents"> <div class="mediaobject"> <img src="images/filters/web/imagemap-info.png" alt="Editing the imagemap data" /> </div> </div> </div> <br class="figure-break" /> <p> With this simple dialog you can enter some items, which will be written to the resulting output file; either as comments (<span class="guilabel">Author</span>, <span class="guilabel">Description</span>) or as attribute values of the HTML tags (<span class="guilabel">Image name</span>, <span class="guilabel">Title</span>, <span class="guilabel">Default URL</span>). </p> </dd> </dl> </div> </dd> <dt> <span class="term">Tools</span> </dt> <dd> <p>With the <span class="quote">“<span class="quote">Tools</span>”</span> menu you can create guides and even regularly spaced rectangular areas. </p> <div class="variablelist"> <dl class="variablelist"> <dt> <span class="term">Grid; Grid settings</span> </dt> <dd> <div class="figure"> <a id="idm49588"></a> <p class="title"> <strong>Figure 17.412. Grid options</strong> </p> <div class="figure-contents"> <div class="mediaobject"> <img src="images/filters/web/imagemap-grid.png" alt="Grid options" /> </div> </div> </div> <br class="figure-break" /> <p> Here you can enable and disable the image grid or configure some grid properties. </p> </dd> <dt> <span class="term">Use GIMP guides; Create guides</span> </dt> <dd> <p> The guide lines are created at the border of the image but can be moved around by clicking on the red squares on each line something similar to the GIMP guide lines. By using the guides you are able to create active rectangles in the image. </p> </dd> <dt> <span class="term">Create guides</span> </dt> <dd> <div class="figure"> <a id="idm49601"></a> <p class="title"> <strong>Figure 17.413. Guide options</strong> </p> <div class="figure-contents"> <div class="mediaobject"> <img src="images/filters/web/imagemap-guides-options.png" alt="Guide options" /> <div class="caption"> <p>The guide options</p> </div> </div> </div> </div> <br class="figure-break" /> <p> Instead of creating geometrical shapes to select the active areas you may use an array of rectangles, each representing an active area, by clicking on the <span class="quote">“<span class="quote">Create guides</span>”</span>. In the menu popping up you set the width and height of the rectangles, the space between them, the number of rows and columns, and the upper and left startpoint for the array. All measures are in pixels. If you are not satisfied with the result you may adjust each rectangle by moving the red squares as usual. </p> </dd> </dl> </div> </dd> </dl> </div> </div> <div class="sect4"> <div class="titlepage"> <div> <div> <h5 class="title"><a id="idm49610"></a>15.2.3.2. The Tool Bar</h5> </div> </div> </div> <p> Most entries here are just shortcuts for some functions already described. Exceptions: </p> <div class="variablelist"> <dl class="variablelist"> <dt> <span class="term">Move to Front; Send to Back</span> </dt> <dd> <p> Here you can move an area entry to the bottom (<span class="quote">“<span class="quote">Move to Front</span>”</span>) or top (<span class="quote">“<span class="quote">Send to Back</span>”</span>) of the area list. </p> </dd> </dl> </div> </div> <div class="sect4"> <div class="titlepage"> <div> <div> <h5 class="title"><a id="idm49620"></a>15.2.3.3. The Working Area</h5> </div> </div> </div> <div class="figure"> <a id="idm49622"></a> <p class="title"> <strong>Figure 17.414. The Working Area</strong> </p> <div class="figure-contents"> <div class="mediaobject"> <img src="images/filters/web/imagemap-draw.png" alt="The Working Area" /> </div> </div> </div> <br class="figure-break" /> <p> In the main area of the imagemap window, on the left side, you will find your working area where you can draw all the shapes areas you want with the relevant tools. </p> <p> Beside the working area there are vertically displayed icons, one for pointing, three for calling tools to generate various shape areas, one to edit zone properties, and finally one to erase a selected zone; you can call these functions with the Mapping menu too. </p> <div class="caution" style="margin-left: 0.5in; margin-right: 0.5in;"> <table border="0" summary="Caution"> <tr> <td rowspan="2" align="center" valign="top" width="25"> <img alt="[Caution]" src="images/caution.png" /> </td> <th align="left">Caution</th> </tr> <tr> <td align="left" valign="top"> <p> Note that the areas should not overlap. </p> </td> </tr> </table> </div> </div> <div class="sect4"> <div class="titlepage"> <div> <div> <h5 class="title"><a id="idm49631"></a>15.2.3.4. The selection area</h5> </div> </div> </div> <p> On the right is a display area, as a property list of the created areas. A click on one item of the list selects automatically the corresponding shape in the working area, then you can modify it. </p> <p> Beside the display is an icon vertical set; its use is obvious but a help pop-up gives you some information about each function. </p> <p> Unfortunately, the arrow symbols for moving a list entry up or down do not work here. But of course you carefully avoided to create overlapping areas, so you do not use these functions at all. </p> </div> </div> </div> <div class="navfooter"> <hr /> <table width="100%" summary="Navigation footer"> <tr> <td width="40%" align="left"><a accesskey="p" href="filters-web.html"><img src="images/prev.png" alt="Prev" /></a> </td> <td width="20%" align="center"> <a accesskey="u" href="filters-web.html"> <img src="images/up.png" alt="Up" /> </a> </td> <td width="40%" align="right"> <a accesskey="n" href="gimp-filter-semi-flatten.html"><img src="images/next.png" alt="Next" /></a></td> </tr> <tr> <td width="40%" align="left" valign="top"><a accesskey="p" href="filters-web.html">15. Web Filters</a> </td> <td width="20%" align="center"> <a accesskey="h" href="index.html"> <img src="images/home.png" alt="Home" /> </a> </td> <td width="40%" align="right" valign="top"> <a accesskey="n" href="gimp-filter-semi-flatten.html">15.3. Semi-Flatten</a></td> </tr> </table> <a href="https://gitlab.gnome.org/GNOME/gimp/issues" class="reportbug">Report a bug in GIMP</a> <a href="https://gitlab.gnome.org/GNOME/gimp-help/issues" class="reportbug"> Report a documentation error </a> </div> </body> </html>