Graphics Software

  1. Home
  2. Computing & Technology
  3. Graphics Software
Why Slice?
Effective Image Slicing - Example Two
 More of this Feature
• Introduction
• Example One
• Example Three
• Related Links
 
 Join the Discussion
"As I understand it, image slicing is useful for breaking up huge images so that the individual pieces will load more quickly than the whole large one."
- Brenda
 

Introduction > Slicing Example Two

Click the button to launch the example page. It will open in a new browser window so you can continue reading as you refer to the example.

This is a Web page with an expanding border that enhances the page without adding a great deal of load time. The border image was created image ImageReady, then selected slices were exported and reassembled in an HTML table.

Here you can see the entire ImageReady document with guidelines to indicate how the image was sliced. Only the 8 numbered sections were saved from ImageReady. Due to the way ImageReady exports HTML, it was easier to save just the slices I needed and create the table code from scratch in an HTML editor.

Each section was saved as a 16-color dithered GIF. The entire page (including HTML) is only 4.62 KB. Here's a breakdown of file sizes for each of the images in this example:

231 bytes

182 bytes

236 bytes
257 bytes In the HTML, the four side images are stretched to 100% height or width to fill the available space. Here you can see the actual size. 299 bytes
243 bytes 240 bytes 260 bytes

Here's the table code to assemble the pieces:

<BODY BGCOLOR=#99CCCC>
<table width="95%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr valign="bottom">
<td width="3%"><img src="slicingdemo3_07.gif" width=25 height=25></td>
<td width="93%"><img src="slicingdemo3_08.gif" width="100%" height="25"></td>
<td width="4%"><img src="slicingdemo3_09.gif" width=25 height=25></td>
</tr>
<tr>
<td width="3%"><img src="slicingdemo3_12.gif" width=25 height=100%></td>
<td width="93%" bgcolor="#FFFFFF">
<p align="center"><b>Slicing Demo Page</b></p>
<p align="left">Lorem ipsum dolor...</p>
</td>
<td width="4%"><img src="slicingdemo3_14.gif" width=25 height=100%></td>
</tr>
<tr valign="top">
<td width="3%"><img src="slicingdemo3_17.gif" width=25 height=25></td>
<td width="93%"><img src="slicingdemo3_18.gif" width="100%" height="25"></td>
<td width="4%"><img src="slicingdemo3_19.gif" width=25 height=25></td>
</tr>
</table>

Example One | Example Three | Related Links

Related Information:

Using Tables to Do Page Layout
HTML Guide Jennifer Kyrnin has tips for using tables for your Web page layouts.

Latin Placeholder Text
Get the "Lorem ipsum dolor" text from About's Desktop Publishing Guide.

Sign-up to have About Graphics Software delivered right to your inbox so you'll never miss an update!

Subscribe to the Newsletter
Name
Email


More Information |
Newsletter Archive

Sue Chastain
Your Guide to Graphics Software
Questions? Comments? Post to the Forum!

More Features

Explore Graphics Software

About.com Special Features

Graphics Software

  1. Home
  2. Computing & Technology
  3. Graphics Software

©2009 About.com, a part of The New York Times Company.

All rights reserved.