Gimptalk - Premier Gimp Community: How to Create Image Maps for Websites - Gimptalk - Premier Gimp Community

Jump to content

  • 4 Pages +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

How to Create Image Maps for Websites

#1 User is offline   Chocolate570 

  • Retired Staff
  • PipPip
  • Group: Retired Staff
  • Posts: 361
  • Joined: 16-December 05

Posted 06 January 2006 - 01:19 AM

The Image Map Tool: Greatest gimp feature created for any web-builder.
Part I: Building the Map
Have you ever seen one of those very cool images or maps where you can click in different places on the image----but it's only one image?
That is either a Flash application, or it's an image map. Image maps are very commonly used throughout the internet.

In this tutorial, I will show you how to use the GIMP's tool that is the equivalent of a photoshop 'slice' for any PS users.

Starting off, we open the image we want to create an image map over.
This is mine:
Posted Image
Now, click filters>>web>>image map. A window will pop up.
This is what it should look like, without the lines and text:
Posted Image
Explanation:
A: Pointer Tool - Allows you to click around;normal cursor mode.
B: Rectangle Select - Allows you to map rectangular regions.
C: Elliptacle Select - Allows you to map elliptical regions.
D: Polygon Select - Allows you to map polygon regions, where you specify the sides.
E: Edit Area Info - Allows you to edit the currently selected area's settings (e.g., link, javascript...).
F: Delete Area - Deletes currently selected map region.
G: Zoom - Allows you to zoom into areas to get a clean cut.
H: Grid - Allows you to display a grid over the image, making it easier for you to get square cuts.
I: Map - Image preview where you draw the map with the tools A,B,C,and D.
J: Selection List - Displays all areas of the map.


Ok, now we know what the tools do---so next, click on a tool of your choice, and select the area you want to map, and another dialog should pop up.
The window:
Posted Image
I suggest you only fill out the first tab, and don't switch to the other tabs unless you are an advanced user.
It's straightforward, so i'm not gonna go over it. If you need help with this part, post. Don't touch the select buttons at the top.
Press ok, and keep selecting regions until you are done with your map.

Now, click "view" on the image map tool and click "Source...", and copy the text.

Finally, paste the code into your webpage's source, and change the src="" to the location of the image.

Congratulations, now you have a really cool logo, a great effect, and a professional look to your webpage.

To see what the tool can do, go

HERE

Part II: Putting it to Use
Most probably, all image maps you see on the web will not just contain links---they'll contain little flashy things that highlight if you put your mouse over. I'll discuss two ways to do this.

Subsection I: Multi-Image
The longer, but easier way.

First, open up the image you used in part I for your map. Now, with the rectangle tool, select a rectangle over the region of the map, in the REGULAR GIMP IMAGE WINDOW. Not in the image map window. This we are doing to the image itself. Try to match the rectangle with the region of the map your selecting.

Go to the layers dialog. Dialogs>>Layers, or ctrl+L for windows users. Click the new layer button.

Now, select your bucket tool. In the bucket tool settings, select "fill whole selection".

Fill in, on the new layer, the rectangle you selected earlier with white. Now, go to the layers dialog again, and set the opacity of your new layer to around 30, or whatever floats your boat. Now merge the two layers and save the image, but with a new filetype. DO NOT OVERWRITE YOUR OLD IMAGE, YOU WILL NEED IT! Save this as "x_y.z", where x=the name of your original image, y=a number, and z=your image filetype. Save without the quotes. This is how your image should look:
Posted Image
That is a part that you have to use your good judgement on, if white doesn't suit your image, then fill it in with grey or another color.
Repeat this with all of your links, remembering to advance the number at the end of your filename.

Now, go to your HTML page and add the image map code to it. Now, here comes the tricky part.

JavaScript Test, VERY BETA:




Now, you have to modify the area map code to make it switch the image. This is VERY tricky. Please read everything carefully, and i'll explain this as best I can. Pay attention to everything, and it'll be a snap to figure out and remember. Here we go.

This is something like what your map code should look like.






.:GimpTalk:. ~ GIMP Help & Tutorials
The GIMP - Greatest Graphic Program Ever
DaFont - Huge Resource of Thousands of Fonts
phpBB - Amazing Open Source php Bulliten Board


Suppose we were going to change the image as if your mouse were over the gimptalk link.

.:GimpTalk:. ~ GIMP Help & Tutorials
If X=The URL of your gimp talk image and Y=The name of your link then this is what we add:


Y shape="rect" coords="90,240,180,255" alt=".:GimpTalk:. ~ GIMP Help & Tutorials" href="http://gimptalk.com" />
Meaning, you have to add
onclick="switchImg(this,[b]X[/b])" id=[b]Y[/b]
to the every area thing.

Your image map is DONE!
UNDER CONSTRUCTION, COMING SOON!!!!
0

#2 User is offline   bobshandel 

  • Member
  • PipPip
  • Group: Members
  • Posts: 19
  • Joined: 10-December 05

Posted 06 January 2006 - 02:18 AM

thanks, awsome tut! :h:
0

#3 User is offline   Chocolate570 

  • Retired Staff
  • PipPip
  • Group: Retired Staff
  • Posts: 361
  • Joined: 16-December 05

Posted 06 January 2006 - 02:24 AM

No problem, any time. Did you find any parts difficult to understand?
0

#4 User is offline   bobshandel 

  • Member
  • PipPip
  • Group: Members
  • Posts: 19
  • Joined: 10-December 05

Posted 06 January 2006 - 02:37 AM

not to me, perfectly clear!
0

#5 User is offline   GIMP Galore 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 7
  • Joined: 23-December 05

Posted 06 January 2006 - 02:39 AM

Thanks for the tut. And to answer your question, everything was easy to understand and follow. Great job!
0

#6 User is offline   Ali Imran 

  • Owner
  • Group: Administrators
  • Posts: 2,305
  • Joined: 06-December 04

Posted 06 January 2006 - 03:06 AM

Full of information with quality writing.
Moved to official illustrated tutorials.

Thanks for sharing.
ยป GIMP TUTORIALS - Largest Database on Internet
0

#7 User is offline   Leinad 

  • Member
  • PipPip
  • Group: Members
  • Posts: 186
  • Joined: 26-June 05

Posted 06 January 2006 - 11:26 AM

The next tutorial should be on making the icons glow or somthing when you put the cursor over them.
0

#8 User is offline   Chocolate570 

  • Retired Staff
  • PipPip
  • Group: Retired Staff
  • Posts: 361
  • Joined: 16-December 05

Posted 06 January 2006 - 12:16 PM

Thanks Ali, I appreciate it. :h:

Icon glowing is unfortunatley not just gimp work. You would need some javascript/html. I might do it though, and just give the code pre-done.... hmmm.....
0

#9 User is offline   ShadowChild 

  • Member
  • PipPip
  • Group: Members
  • Posts: 74
  • Joined: 23-December 05

Posted 06 January 2006 - 12:36 PM

Wow, nice tut. I did not know about any of this.
0

#10 User is offline   /--rtichoke 

  • Member
  • PipPip
  • Group: Members
  • Posts: 26
  • Joined: 14-July 05

Posted 06 January 2006 - 03:19 PM

YAY!
thanks you so much for this. the javascript part is easiest part though; just go to some site and get some code.
0

#11 User is offline   Chocolate570 

  • Retired Staff
  • PipPip
  • Group: Retired Staff
  • Posts: 361
  • Joined: 16-December 05

Posted 06 January 2006 - 08:24 PM

That part of the tutorial is under construction. The first sub-section will be done by tomorrow. :)
0

#12 User is offline   Chocolate570 

  • Retired Staff
  • PipPip
  • Group: Retired Staff
  • Posts: 361
  • Joined: 16-December 05

Posted 09 January 2006 - 09:58 PM

Almost done with the tut. I'm just working on the javascript part, and then i'll post the complete thing. For now, you can start working on the areas i've already covered. :)
0

#13 User is offline   Koops12 

  • Member
  • PipPip
  • Group: Members
  • Posts: 457
  • Joined: 07-January 06

Posted 14 January 2006 - 11:50 PM

Great tutorial, very helpful.
Posted Image
0

#14 User is offline   -George- 

  • Member
  • PipPip
  • Group: Members
  • Posts: 87
  • Joined: 06-November 05

Posted 15 January 2006 - 05:28 PM

Thank you that will be very helpful. :h:
0

#15 User is offline   -George- 

  • Member
  • PipPip
  • Group: Members
  • Posts: 87
  • Joined: 06-November 05

Posted 15 January 2006 - 07:43 PM

This is a n00b question, but if i wanted the whiole site to be a picture what size should i make it?
0

#16 User is offline   Chocolate570 

  • Retired Staff
  • PipPip
  • Group: Retired Staff
  • Posts: 361
  • Joined: 16-December 05

Posted 16 January 2006 - 03:05 PM

It's not reccomended that you make a whole site one picture, as then it takes forever to load the thing.
0

#17 User is offline   superzippergirl 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 17-January 06

Posted 17 January 2006 - 06:38 PM

thanks I'm new to Gimp, and love webdesign so this helped out alot, if you want check out my site, freewebs.com/superzippergirl (thats where i used this, i havn't gotten it up yet so some of the links will bring you to broken profiles, but i'm proud of the image. I havnt' gotten to the second part of the tut yet but i still love it ^_^
0

#18 User is offline   Dark Aurora 

  • Member
  • PipPip
  • Group: Members
  • Posts: 24
  • Joined: 15-January 06

Posted 21 January 2006 - 02:41 AM

Really awesome tutorial!:w:

Um...you know, the Image Map works very well indeed for me but if i need it for a site that only allows BBcode, then what should i do?
0

#19 User is offline   gowness 

  • Member
  • PipPip
  • Group: Members
  • Posts: 56
  • Joined: 16-January 06

Posted 21 January 2006 - 03:15 AM

wow, very nice tut, easy to fallow too.
0

#20 User is offline   Chocolate570 

  • Retired Staff
  • PipPip
  • Group: Retired Staff
  • Posts: 361
  • Joined: 16-December 05

Posted 21 January 2006 - 03:34 AM

I'm glad all of you like it!
@superzippergirl: Nice site. :)
@Dark Aurora: You can't do an image map with bbcode, sorry. :( Ask the admin if you can post the html.
@gowness: I'm glad it was easy to follow, that's what i was aiming for when I made it. :)
0

Share this topic:


  • 4 Pages +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic