ThePlace

Home ] Search ] Resources ] Site Map ] Contact Me ]
Dave's Information Technology Resource

Up ]

[ Graphic Tips ] Graphic File Format Comparisons ] Animated GIFs ] Transparent GIFs ] Image Maps ] Safe Colors ] Scanners, Cameras, etc ]

--- Graphic Tips ---

This page provides a brief tutorial in summary form of Web Graphics information.

bulletProper Image File Formatting
bulletCutting Images Down to Size
bulletWhat Image Tags Really Do
bulletWhat Tools Do for You
bulletWeb Page Backgrounds
bulletButtons and Other Effects
bulletImage Maps
bulletSlideshow Graphics
bulletScanning and Digital Cameras

 

Proper format for images -- yes there is a difference

bulletOriginal images are saved in a "bitmap" format - this provides for maximum quality and preservation.  Typical file formats include windows bitmap (.bmp) and many commercial product formats. 
bulletA bitmap is a solid, one layer image.   Do not confuse with a layered image in Photoshop or PaintShop Pro format.
bulletThe table below illustrates the proper way to save images for web pages...

For each of the following images, click on the image to see the original quality image (and file format) displayed in the browser (use your back button to return).

All linked images are 640X480 pixels

16 million colors, 901KB

256 colors, 231KB

16 million colors, 20% compression, 57KB

Bitmap format GIF (Graphics Interchange Format) JPEG (Joint Photographic Experts Group)

16 million colors, 901KB

256 colors, 17KB

16 million colors, 20% compression, 64KB

 

Bitmap format GIF (Graphics Interchange Format) JPEG (Joint Photographic Experts Group)
Native format, too large for web use; not supported by all browsers.

16 million colors is also called a 24 bit image.

Limited to 256 colors;  capable of transparent and animation effects. Up to 16 million colors; capable of variable compression.
Best for: Cartoons, data graphs; flat, limited number of colors Photographs; scanned images of paintings, multi-tone images.

 

Return to Top

Cutting images down to size - cropping, shrinking, compressing

There are three main things to consider when cutting images down to size:

  1. Cropping
  2. Shrinking
  3. Compressing

Using the "bird" image from above, consider the following...

For each of the following images, click on the image to see the original quality image (and file format) displayed in the browser (use your back button to return).

bulletStart with the original in bitmap format.
bulletUse the highest resolution available based on capture device.
bulletImage on left is 16 million colors, 440X480 pixels and taken with a digital camera
bulletCrop the image to best capture what you want and need to present.
bulletThis takes practice and some careful consideration.
bulletImage on left is now: 476X266 pixels (still 16 million colors) and 371KB (bitmap format)
bulletThe image is now shrunk to 250X140 pixels and 103KB (bitmap)
bulletSave the image using JPEG compression (after all, it is a photograph).
bulletThe final file is 9KB at 20% compression using PaintShop Pro

 

Some things to keep in mind:

bulletKeep the original so that you can start over.
bulletExperiment with cropping and shrinking to get the desired effect.
bulletExperiment with variable compression in JPEG (does not apply with GIF) to achieve best look and smallest size.

Return to Top

What image tags really do -- and mostly what they don't do

This is an easy one...

Consider the following image...

Bird Picture

The tag to display this is...

<img border="0" src="birdprepfinal.jpg" alt="Bird Picture" width="250" height="140">

Note the width and height properties.  In this image, they reflect the actual size of the image as it is stored.  In fact, if you omit these properties, the image would look the same.

Now consider...

Bird Picture

The tag for this is...

<img border="0" src="birdprepfinal.jpg" alt="Bird Picture" width="112" height="65">

The height and width have been adjusted to "shrink" the appearance of the image -- not the actual image file size.

Lesson: Do not use the image tag properties of height and width IF you think you are changing the original image file size - you are only changing the appearance size.

Return to Top

What tools do for you -- web editors v. graphics tools

Many commercial web page development tools such as FrontPage and Dreamweaver have some built-in tools to support web page graphics.  These tools include:

bulletResizing
bulletCropping
bulletAdjusting color, contrast
bulletRotating, flipping, etc.

Unfortunately, they often lack the finer capabilities of true graphics editing software such as:

bullet Photoshop - the "professional tool" used by graphic artists.  Very powerful.  Takes a significant learning curve to become proficient.  Relatively expensive.
bulletPaintShop Pro - a good tool for graphics amateurs; imports/saves to a large number of formats; has own internal format (layered).  Inexpensive (<$100); relatively easy to learn; 30 day free trial available.  Includes tools for creating animated GIFs.

Considerations:

bulletSpend some time to learn the tool.
bulletUnderstand how the tool works (image format, color depth, etc.).
bulletMake sure you know what you are doing -- don't depend on the tool to do it for you.

Return to Top

 

Backgrounds -- use them wisely

Background images are often abused and misused.

Thoughts for backgrounds...

bulletKeep them simple.
bulletLook for:
bulletSmall images
bulletGIF or JPEG works -- just pick the smallest
bulletRepeatable patterns that blend well into the "background" of the page
bulletGood contrast with the foreground text color
bulletLarge backgrounds can be used (check out the background at http://dhillman.com/deepspace - the background is actually quite large (800X813 pixels) - but is only 16KB in file size.  Be careful these do not get too large.

Neat tricks...

bulletCrumple a piece of paper and scan it.  The gray image on the right is from a digital camera picture of a crumpled piece of paper.  It is in JPEG format and takes up 3KB.  You can adjust the brightness, contrast, and even color to create various effects.
bulletYou can create colored edges by placing a long border on the right side of an image with a repeatable design.  Total image size should be about 900X50.  This creates the effect of a side border.

 

Return to Top

Buttons and other effects -- don't overdo or overwork!

Creating your own buttons is easy.

The following shows you a process for creating buttons.  It assumes that you are using PaintShop Pro -- although other tools provide similar capabilities.

Saved as a bitmap (18KB)

Create a master blank ...
bulletFrom scratch by coloring, drawing, etc.
bulletSet the overall size (height/width) for the button.
bulletIf an existing image is used, convert it to 24 bit format/16 million colors.

 


GIF version - 5KB


JPEG version - 2 KB

Save to the best format...
bulletCreate button borders - PaintShop has a tool just for this.
bulletThis may involve some experimenting to see which format is best.
bulletLook for best file size and best quality appearance.
bulletPut the word "master" in the filename.

12 point Arial text (no bold)
Set the font...
bulletSelect a font and style.
bulletPlace the font name, bold, italic, and other information on the button.
bulletUse "xx..." to provide a rough idea of the amount of text you need.
Create your buttons...
bulletCopy the master button.
bulletAdd the appropriate text.
bulletSave to the appropriate format.

 

Creating rollover buttons...
bulletLighten/darken or otherwise change the master button.
bulletUse the same name with a numeric indication for the alternative button.
bulletApply the JavaScript to accomplish the rollover effect...

 

Part of the key to creating buttons is to know how to use your graphics tool.

There are also tools and web resources for automatically creating buttons.

Return to Top

Image Maps - make them meaningful

I'm not going to describe how to do image maps here (go here for that) -- but I would like to discuss "good" use principles.

bulletMake the image meaningful -- menu bars, maps (geographical, etc.).
bulletAvoid general pictures or elements that are "navigationally" vague -- in other words, the image does not indicate that you are going somewhere if you click on it.
bulletThe image (or supporting elements such as text) should provide some indication that an image map is present.  For example..
bulletA menu bar with text (the text elements are the hot spots).
bulletText around the image tells you to look for links on the image.
bulletKeep the image map file size reasonable.
bulletWhenever possible, use image map tools to set up the coordinate structures.  These tools are built into products such as FrontPage.

 

Return to Top

Slideshow graphics -- too much is too much

Click for an example of a slideshow demo.

There are a variety of techniques for implementing slideshows.  But there are some basic points you should consider...

bulletKeep the image size (width and height) consistent for all images.  This means adjusting perspectives by adding borders to create consistent sizes.
bulletKeep image file sizes as small as possible.  Most slideshows operate by downloading all the images when the page initially loads -- the total number of images and their file sizes will add up.
bulletTry to associate text or other information to EACH of the images.
bulletMake sure any controls are self-explanatory and easy to use.

Return to Top

Scanning and digital cameras -- they only capture, you have to edit.

Some thoughts on scanning and digital cameras...

bulletCapture/save to the maximum resolution that is reasonable to create master images.  For web use...
bulletAt least 200 DPI for scanning.
bulletSave as bitmaps whenever possible to minimize loss.
bulletWith cameras...shoot multiple pictures when possible.
bulletAvoid cropping and shrinking while scanning -- save this for later.
bulletGraphic editing tools that come with scanners and digital cameras are often limited in capability (e.g., the ability to convert or save to GIF or JPEG).
bulletTherefore...use commercial tools such as PhotoShop or PaintShop Pro.

Return to Top

Home ] Up ] Computer Architecture ] Programming Bootcamp ] Database Bootcamp ] Visual BasicS ] Web Basics ] Web Multimedia ] Web Programming ] Advanced Web Topics ] Developing Web Sites ] XML Technology ] Web Glossary ]

Copyright © 1999 - 2005 
ThePlace - Written and Sponsored by Dave Hillman