Slicing an image for web

Man of Honour
Joined
17 Feb 2003
Posts
29,640
Location
Chelmsford
Hi,

I wish to slice an image for the web with the html code to bind it together afterwards. Each of the sliced images has a separate url link.

Is there a way in PS elements 12 this can be done?


Thanks
 
Associate
Joined
4 Feb 2011
Posts
580
Location
Halifax
What are you trying to achieve? Do you actually want to slice and separate the image or do you want links for each part of the image?

If it's the latter, you can use image maps.

If not, I'm sure it won't be hard to use separate image tags with links and then join the image back together with some CSS.
 
Associate
Joined
2 Feb 2012
Posts
826
Location
Newcastle UK
I know in Photoshop you can use the slice tool and then save for web.

If you choose to save the images and html via Photoshop, it actually generates the html for you.

So use slice to slice where you want image to be separates, then go to File > Save for Web.

Not used Elements, so not sure if this function is available.
 
Man of Honour
OP
Joined
17 Feb 2003
Posts
29,640
Location
Chelmsford
It doesn't look the feature is available in the Elements version because I have seen exactly what you describe in earlier version of CS.

It's basically one image but i want different URLs for 3 different parts. g on various parts so the image mapping looks interesting. Is that a Mozilla HTML extension? Mind you, i see it's restricted to a certain point on the screen so assumes the image is fixed in one location?
 
Associate
Joined
2 Feb 2012
Posts
826
Location
Newcastle UK
<map id="ImgMap0" name="ImgMap0">
<area alt="" coords="5, 7, 142, 70" href="#1" shape="rect" />
<area alt="" coords="147, 7, 283, 71" href="#2" shape="rect" />
<area alt="" coords="286, 10, 398, 70" href="#3" shape="rect" />
</map>

<img src="http://img.photobucket.com/albums/v16/hardhuddy/Sigs/AHsig2.jpg" usemap="#ImgMap0">

Quick example of mapping with your sig above, it basically works on cordinates, I think it works coords="MARGIN-LEFT, MARGIN-TOP, WIDTH OF HOTSPOT, HEIGHT OF HOTSPOT"
 
Associate
Joined
4 Feb 2011
Posts
580
Location
Halifax
It's basically one image but i want different URLs for 3 different parts. g on various parts so the image mapping looks interesting. Is that a Mozilla HTML extension? Mind you, i see it's restricted to a certain point on the screen so assumes the image is fixed in one location?

No, it's part of the W3 spec so it's available in all browsers.

It's not mapped to a point on the screen but to certain points on the image. If you move the image around the page, the points stay fixed to wherever they were on the image.

Made a quick example for you: http://jsfiddle.net/wnp8hkj1/ (the link is over your name text)

Edit: I got beaten to it. :p

Quick example of mapping with your sig above, it basically works on cordinates, I think it works coords="MARGIN-LEFT, MARGIN-TOP, WIDTH OF HOTSPOT, HEIGHT OF HOTSPOT"

It works out as follows:

shape="rect" coords="x1, y1, x2, y2"
shape="circ" coords="x, y, r"
shape="poly" coords="x1, y1, x2, y2, ..., xn, yn"
 
Last edited:

Dup

Dup

Soldato
Joined
10 Mar 2006
Posts
11,277
Location
East Lancs
The code for putting 3 images inside anchor links is far easier than messing with dodgy image maps!

Just save the image cropped into 3 different ones and then do some quick code.

What is the final destination for said image(s)? Will it be a set size overall?

Image maps are only useful when you want the links to be a shape other than a square or oblong.
 
Back
Top Bottom