Lecture Notes and Assignment
C O
L O R S on the W E B
(Resource - Macromedia Help Document/FW 2004)

The challenges face by Web Graphic designers today:

Bit Depth (pixel depth or bit resolution)

A bit is the smallest unit of information that a computer understands. A single bit can store 2 separate values of 0 or 1. The number of bits store colors to be used in graphic display on the computer.

Bit Depth
Bits
Number of Colors/Gray
1
2
2
4
3
8
4
16
5
32
6
64
7
128
8
256
16
65,536
24
16,777,216
32
16,777,216, plus an alpha channel


Hue (H) - measurement of the color's position on the color wheel.

Saturation (S) - measurement of how pure a color is. Less saturated=gray

Brightness (B) - brightness

RGB works with HSB. There are 256 values between 0 and 255.

Color Measurements Hexadecimal, or base 16 = notation that specifies colors for the web. (Computers think of numbers in chunk of two 2 to the power of 4)

#
Decimal System
0
1
2
3
4
5
6
7
8
9
10
11
12
15
14
15

HEX
Base 16

0
1
2
3
4
5
6
7
8
9
A
B
C
D
E
F
Special Digits Used in Hex Notation
Decimal Notation
Hex Notation
10
A
11
B
12
C
13
D
14
E
15
F

5+7=C; C-A=2 etc.



Notation
R
G
B

 

FF
00
00
255
0
0

Notation
R
G
B

 

00
FF
00
0
255
0

Notation
R
G
B

 

00
00
FF
0
0
255

What would be the code for 1. black 2. white and 3. purple?

Hexadecimal Converting to RGB Values
#33FF66 Red=33, Green=FF, Blue= 6C
RED
(3 * 16) + 3
51
BLUE
(15 * 16) +15
255
GREEN
(6 * 16) +12
108
RGB Converting to Hexadecimal
R=51, G=102, B=123
RED
(51/16=3) + 3
33
BLUE
(102/16=6) +6
66
GREEN
(123/16=7) + 6
7B


Hexadecimal Sample Chart


Web export formats in Fireworks

GIF, JPEG, and PNG are graphic file formats that are common in web development because they are highly compressible, making for faster transfer across the Internet. However, a graphic’s visual integrity can vary from one format to another, depending upon each format’s method of compression. Therefore, base your choice of file format upon the design and use of your graphic.

GIF

Graphics Interchange Format, or GIF, is the most popular web graphic format. Although it can contain only 256 colors, GIF offers good, lossless image compression. Also, GIFs can contain a transparent area and multiple frames for animation.

Compression

  • Lossless compression means that no image quality is lost when an image is compressed. A GIF compresses by scanning horizontally across a row of pixels, finding solid areas of color, and then abbreviating identical areas of pixels in the file. Therefore, images with repetitive areas of solid color compress best when saved as GIFs. A GIF is usually ideal for cartoon-like graphics, logos, graphics with transparent areas, or animations. Note: Dithering or anti-aliasing GIF images produces larger files.

JPEG

JPEG is an alternative to GIF developed by the Joint Photographic Experts Group specifically for photographic images. JPEG supports millions of colors (24-bit).

Compression

  • JPEG is a lossy format, which means that some image data is discarded when it is compressed, reducing the quality of the final file. However, image data can often be discarded with little or no noticeable difference in quality. When exporting a JPEG, use the Quality pop-up slider in the Export Preview to determine how much quality is lost when compressing the file. Use a high percentage setting to maintain image quality but compress less, producing larger files. Use a low percentage setting to yield a small file, but produce a lower-quality image.
    Use the Export Preview to test and compare the appearance and estimated file size with different Quality settings for an exported JPEG.
    Check either Optimized or Progressive to export the JPEG using optimized compression tables that can reduce file size.
  • Smoothing

    Use smoothing to help lower the file size of JPEGs. Smoothing blurs hard edges, which do not compress well in JPEGs. To use smoothing, select a level from the Smoothing pop-up in the Export Preview. Higher numbers produce more blurring in the exported JPEG, typically creating smaller files.

    Sharpening color edges

    Check Sharpen Color Edges to help preserve fine edges between two colors. Use Sharpen Color Edges when exporting JPEGs with text or hard color transitions to preserve the sharpness of these areas

    Progressive

    Check Progressive in the Export Preview to export a progressive JPEG. Progressive JPEGs, like interlaced GIFs, display at low resolution and then increase in quality as they continue to download.
    The JPEG format is best for scanned photographs, images using textures, images with gradient color transitions, or any images that require more than 256 colors.
    Note: Many image editing applications cannot open progressive JPEGs.

PNG

The Portable Network Graphic, or PNG, is the most versatile of the web graphic formats. However, not all web browsers can take full advantage of PNG characteristics. A PNG supports up to 32-bit color, can contain transparency or an alpha channel, and can be progressive.

Web format comparison

  GIF JPEG PNG
Color depth
8-bit maximum Up to 24-bit Up to 32-bit
Compression
Lossless; compresses solid areas of color Lossy; compresses subtle color transitions Lossless
Transparency support
Yes No Yes
Advantages Lossless compression Transparency Ability to control quality loss in compression

Excellent compression of photographic images
Lossless compression

Alpha transparency

High color support
Disadvantages
Maximum of 256 colors

Does not compress gradient colors well
No transparency

Loss of quality when compressed
Not completely supported by common browsers without using plug-ins
Typical Uses
Cartoon images

Logos

Animated banners
Scanned photographs

Images with complex textures

Images with complex gradient colors
Images with high numbers of colors

Complex, live transparency