GT Portal . Forums . Official Tutorials . Art Galleries . FAQs . Search . New Posts . Contact Us Login  .  Register


Board index » GIMP News and Help forums » GIMP Tutorials and Tips Make Money Online . Free Image Hosting
Featured Tutorial : Learn how to create characters by Griatch
Search for :  


Post new topic Reply to topic   [ 55 posts ]   Go to page 1, 2, 3  Next


Author Message
 Post subject:
PostPosted: Fri Jan 06, 2006 1:19 am 
Offline
User avatar

Joined:
Fri Dec 16, 2005 2:31 am

Topics: 21
Posts: 361

Find User's Topics

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:
Image
Now, click filters>>web>>image map. A window will pop up.
This is what it should look like, without the lines and text:
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:
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:
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:

Code:
<script type="text/javascript">
function switchImg(img,simg)
{
x=document.getElementById(img);
x.src=simg;
}
</script>


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.
Code:
<map name="map">
<!-- #$-:Image Map file created by GIMP Imagemap Plugin -->
<!-- #$-:GIMP Imagemap Plugin by Maurits Rijk -->
<!-- #$-:Please do not edit lines starting with "#$" -->
<!-- #$VERSION:2.0 -->
<!-- #$AUTHOR:XXXXXX -->
<area shape="rect" coords="90,240,180,255" alt=".:GimpTalk:. ~ GIMP Help & Tutorials" href="http://gimptalk.com" />
<area shape="rect" coords="210,240,285,255" alt="The GIMP - Greatest Graphic Program Ever" href="http://gimp.org" />
<area shape="rect" coords="300,240,375,255" alt="DaFont - Huge Resource of Thousands of Fonts" href="http://dafont.com/en" />
<area shape="rect" coords="390,240,450,255" alt="phpBB - Amazing Open Source php Bulliten Board" href="http://phpbb.com" />
</map>

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

<area shape="rect" coords="90,240,180,255" alt=".:GimpTalk:. ~ GIMP Help & Tutorials" href="http://gimptalk.com" />
If X=The URL of your gimp talk image and Y=The name of your link then this is what we add:


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

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




Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 06, 2006 2:18 am 
Offline
User avatar

Joined:
Sat Dec 10, 2005 8:12 pm

Topics: 8
Posts: 19

Find User's Topics
thanks, awsome tut! :h:



Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 06, 2006 2:24 am 
Offline
User avatar

Joined:
Fri Dec 16, 2005 2:31 am

Topics: 21
Posts: 361

Find User's Topics
No problem, any time. Did you find any parts difficult to understand?



Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 06, 2006 2:37 am 
Offline
User avatar

Joined:
Sat Dec 10, 2005 8:12 pm

Topics: 8
Posts: 19

Find User's Topics
not to me, perfectly clear!



Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 06, 2006 2:39 am 
Offline

Joined:
Fri Dec 23, 2005 12:41 am

Topics: 1
Posts: 7

Find User's Topics
Thanks for the tut. And to answer your question, everything was easy to understand and follow. Great job!



Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 06, 2006 3:06 am 
Offline
User avatar

Joined:
Mon Dec 06, 2004 11:05 am

Topics: 249
Posts: 2207

Find User's Topics
Full of information with quality writing.
Moved to official illustrated tutorials.

Thanks for sharing.


_________________
http://www.gimp-tutorials.com . http://www.radcpp.com . http://www.apitalk.com
---
get FLV Player


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 06, 2006 11:26 am 
Offline

Joined:
Sun Jun 26, 2005 8:33 am

Topics: 21
Posts: 186

Find User's Topics
The next tutorial should be on making the icons glow or somthing when you put the cursor over them.



Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 06, 2006 12:16 pm 
Offline
User avatar

Joined:
Fri Dec 16, 2005 2:31 am

Topics: 21
Posts: 361

Find User's Topics
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.....



Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 06, 2006 12:36 pm 
Offline

Joined:
Fri Dec 23, 2005 3:20 am

Topics: 12
Posts: 74

Find User's Topics
Wow, nice tut. I did not know about any of this.



Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 06, 2006 3:19 pm 
Offline
User avatar

Joined:
Thu Jul 14, 2005 10:48 pm

Topics: 6
Posts: 26

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



Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 06, 2006 8:24 pm 
Offline
User avatar

Joined:
Fri Dec 16, 2005 2:31 am

Topics: 21
Posts: 361

Find User's Topics
That part of the tutorial is under construction. The first sub-section will be done by tomorrow. :)



Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 09, 2006 9:58 pm 
Offline
User avatar

Joined:
Fri Dec 16, 2005 2:31 am

Topics: 21
Posts: 361

Find User's Topics
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. :)



Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 14, 2006 11:50 pm 
Offline
User avatar

Joined:
Sat Jan 07, 2006 9:15 pm

Topics: 34
Posts: 457

Find User's Topics
Great tutorial, very helpful.


_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 15, 2006 5:28 pm 
Offline

Joined:
Sun Nov 06, 2005 12:07 am

Topics: 5
Posts: 87

Find User's Topics
Thank you that will be very helpful. :h:



Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 15, 2006 7:43 pm 
Offline

Joined:
Sun Nov 06, 2005 12:07 am

Topics: 5
Posts: 87

Find User's Topics
This is a n00b question, but if i wanted the whiole site to be a picture what size should i make it?



Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 16, 2006 3:05 pm 
Offline
User avatar

Joined:
Fri Dec 16, 2005 2:31 am

Topics: 21
Posts: 361

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



Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 17, 2006 6:38 pm 
Offline

Joined:
Tue Jan 17, 2006 6:13 pm

Topics: 1
Posts: 2

Find User's Topics
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 ^_^



Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 21, 2006 2:41 am 
Offline
User avatar

Joined:
Sun Jan 15, 2006 7:44 am

Topics: 2
Posts: 24

Find User's Topics
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?



Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 21, 2006 3:15 am 
Offline
User avatar

Joined:
Mon Jan 16, 2006 12:17 am

Topics: 9
Posts: 56

Find User's Topics
wow, very nice tut, easy to fallow too.



Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 21, 2006 3:34 am 
Offline
User avatar

Joined:
Fri Dec 16, 2005 2:31 am

Topics: 21
Posts: 361

Find User's Topics
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. :)



Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 21, 2006 3:41 am 
Offline

Joined:
Fri Dec 30, 2005 4:21 am

Topics: 2
Posts: 18

Find User's Topics
Wow, nice tut! :l: I love HTML, so i love Image map!



Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 21, 2006 6:57 am 
Offline
User avatar

Joined:
Sun Jan 15, 2006 7:44 am

Topics: 2
Posts: 24

Find User's Topics
Quote:
I'm glad all of you like it!
@Dark Aurora: You can't do an image map with bbcode, sorry. :( Ask the admin if you can post the html.


Sigh...alright, thanks. :h:

EDIT: I found a way. Yay! :l:



Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 25, 2006 2:37 am 
Offline
User avatar

Joined:
Sun Oct 16, 2005 11:31 pm

Topics: 8
Posts: 64

Find User's Topics
So what file type do we save it as? Sorry if it was in the tutorial, I sort of just skimmed over it... :s:

At least if I can make this work, then my web pages won't be so boring!!! Thanks!



Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 25, 2006 3:14 am 
Offline
User avatar

Joined:
Tue Jan 24, 2006 12:31 am

Topics: 12
Posts: 110

Find User's Topics
Wow, thats a nice tut! I'll try it later :l:


_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 26, 2006 10:23 pm 
Offline
User avatar

Joined:
Fri Dec 16, 2005 2:31 am

Topics: 21
Posts: 361

Find User's Topics
Thanks poot, i'd love to see your outcome.

Punksnowboarder, the answer is in the tutorial. You don't save the file as anything.
Quote:
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.



Top
 Profile  
 
Display posts from previous:  Sort by  

Post new topic Reply to topic
 [ 55 posts ]  Go to page 1, 2, 3  Next



Who is online

Users browsing this forum: No registered users and 14 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Related Website
Gimp tutorials database
All rights reserved © GimpTalk 2008
forum software by
phpBB