Docsity

Web Image Formats: GIF, JPEG, and PNG, Slides of Fundamentals of E-Commerce

Partial preview of the text

Download Web Image Formats: GIF, JPEG, and PNG and more Slides Fundamentals of E-Commerce in PDF only on Docsity!

  • Most Web pages contain graphical images to

add interest, make navigation easier, and toconvey necessary information.

  • Most Web users will wait only a short time for

a page to load, so efficiency considerationsare important.

Loading efficiency

  • Graphic formats are usually referred to by their file

extensions, such as .tif, .bmp, .gif, .jpg, and .png.

  • Web page images are commonly in either the .gif

.jpg, or .png format.

  • Graphic formats are usually compressed. File

compression can either by

lossless

, which does

not decrease image quality, or

lossy

, which does

lose image quality.

Graphic formats

  • The Joint Photographic Experts Group (JPEG)

format is supported by most browsers thatdisplay images.

  • JPEG images use lossy compression. The amount

of compression ranges from 0% to 100%. Thehigher the compression, the smaller the file sizeand the lower the image quality.

  • JPEG cannot be made transparent, but it can be

specified as a

progressive

JPEG, which is loaded

the same way as an interlaced GIF.

JPEG

  • The Portable Network Graphics (PNG) format is

a new(ish) format created for Web page images.

  • It is expected that it will eventually replace GIF.• PNG images use a lossless compression that is

more efficient than GIF.

  • It can use a color palette of 256 colors or less like

GIF or support true color like JPEG images.

  • PNG images can be interlaced and transparent.

PNG

  • GIF, JPEG, and PNG images are all bitmapped

formats, which means that the images aremade of a rectangular grid of pixels.

  • Web images are measured in pixels.

Example: 500 x 55

  • Do not make images too wide. Images that do

not fit into a single screen will force scrolling.

  • For efficiency considerations, you may choose

to create a thumbnail image. This is a smallerversion of an image that allows a preview ofthe picture. Example:

LLBean

Size considerations