Index | Definitions| Previous | Next |


Adding Images

Objectives:

Saving an image:
If you already know how to save an image, do so in your practice folder.

If you don't know how to copy and save an image, try these two methods:

A. The Secret Menu;
Go to http://pdg.lbl.gov/~aerzber/aps_humor.html. You will copy and save the cartoon.

Look for the "secret" popup menu in your web browser:

  1. Click and hold the mouse on the image above to bring up the "secret" menu.
    (Click and hold the mouse for Macintosh; click and hold the right mouse button for W\ indows and Unix.)
  2. Select "Save this Image as..."
  3. When prompted, enter "physics_phun.gif" as the name for the file (it may insert it for you).
  4. Save the file in the same folder/directory as your HTML document.

B. Saving As Source:
If you cannot find the secret menu, try this approach.

  1. Select the link below ("view the image") that links directly to the image. It will likely show the picture by itself in a separate web page or it may launch an external graphics program to display the image. View the image.
  1. If the image displays by itself in a web page then:
    1. Select "Save As..." from the File menu.
    2. Select the option to save as SOURCE.
    3. Enter "physics_phun.gif" as the name for the file.
    4. Save the file in the same folder/directory as your HTML document.
  1. If the image displays in an external graphics program, then:
    1. Select Save As... from the File menu.
    2. Look for an option to save as GIF format.
    3. Enter "physics_phun.gif" as the name for the file.
    4. Save the file in the same folder/directory as your HTML document.

GIF or JPEG:
The way a web browser displays graphics in HTML format indicates the location of a graphic file and is in a format that can be interpreted by different types of computers.

GIF
The standard format that can display within a web page is GIF or Graphics Interchange Format. The GIF compresses the picture information (reduces the file size) and translates it to binary code that can be sent over the Internet. GIF compression is most effective on graphics that have contiguous areas of solid color or lines. GIF images have the feature of defining a color to be "transparent" so images can appear to have non-rectangular boundaries. They can also be saved in the "interlaced" format so that when you see a web page, the images start to appear soon and "dissolve" to the final image. Write image name as "image.gif".

JPEG
The other file format used on the web is JPEG (named after the Joint Photographic Expert Group that designed this format). JPEG compression is very effective for photographic images ("grainy" images). JPEG offers some dramatic compression in filesize, sometimes by a factor of 10 (e.g. a 1500 kb file reduced to 150 kb), which may be at a trade-off for some image quality. JPEG images do not have transparency. Write image name as "image.jpg".

WARNINGS:

INSERTING IMAGES:

PRACTICE:

Surf the web and browse for pictures. Try to download at least one image that might be useful for your page. Just a few places you might try:

CHECK YOURSELF:

NEXT


Project Contact: Andria Erzberger
Last Update: January 21, 2003