### 15.2. Image Map

#### 15.2.1. Översikt

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 ”filter” allows you to design easily sensitive areas within an image. Applications for website design have this as a standard function. In GIMP, you can do this in a similar way.

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.

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 description in Grokking the GIMP with the link [GROKKING02].

#### 15.2.2. Activating the Filter

This filter is found in the main menu under Filters → Web → Image Map….

#### 15.2.3. Alternativ

Figur 17.423. Image Map filter options

Image map window

##### 15.2.3.1. The Menu Bar

The menu bar is similar to the main menu, only a few menus or menu entries are different:

Fil
  Save, Save As

    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.

    | Tips
    With View → Source you can preview this text file content.

  Open, Open recent

    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, GIMP will ask you for adapting the scale.

Redigera
  Edit area info

    Figur 17.424. Editing an image map area

    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.

Visa

  This menu offers you special functions:

  Area List

    Here you can hide or show the selection area.

  Source…

    Here you see the raw data as you would save it to or read it from a file.

  Color, Gray

    You can select the image mode here and work with a Grayscale display.

Mappings

  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.

  Arrow

    The arrow here represents the Move tool. When activated tool is selected, you can select and move an area on the image.

    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.

  Rectangle, Circle, Polygon

    These tools let you create various shape areas: click on the image, move the pointer, and click again.

  Edit Map Info…

    Figur 17.425. Editing the image map data

    With this simple dialog you can enter some items, which will be written to the resulting output file; either as comments (Author, Description) or as attribute values of the HTML tags (Image name, Title, Default URL).

Verktyg

  With the ”Tools” menu you can create guides and even regularly spaced rectangular areas.

  Grid, Grid Settings…

    Figur 17.426. Grid options

    Here you can enable and disable the image grid or configure some grid properties.

  Use GIMP Guides…, Create Guides…

    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.

  Skapa hjälplinjer

    Figur 17.427. Guide options

    The guide options

    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 ”Create guides”. 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.

##### 15.2.3.2. The Tool Bar

Most entries here are just shortcuts for some functions already described. Exceptions:

Move Area to Front, Move Area to Bottom

  Here you can move an area entry to the bottom or top of the area list.

##### 15.2.3.3. The Working Area

Figur 17.428. The Working Area

In the main area of the image map 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.

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 from the Mappings menu too.

| Observera
Note that the areas should not overlap.

##### 15.2.3.4. The selection area

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.

Beside the display is an icon vertical set; its use is obvious but a help pop-up gives you some information about each function.

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.

15. Webbfilter |  | 15.3. Semi-Flatten

Report a bug in GIMP Rapportera ett dokumentationsfel