Chapter 5 - Graphic: Types of Data
Chapter 5 - Graphic: Types of Data
TYPES OF DATA
Bitmap Graphic
Bitmaps are created using a square of rectangular grid of colored pixels.
Vector Graphic
Vectors use geometric characteristics to define the object.
Bitmap images (also known as raster images) are made up of pixel in a grid
Pixels are picture elements; tiny dots of individual color that make up what you see on your screen A pixel is often referred to as a dot, as in dots-per-inch
When you zoom in any bitmap images, you will find the image is a combination of pixels
Bitmap Images Quality of image drops when it is resized Images look realistic Resolution independent
Vector Images Scalable and the quality of the image maintains Cartoon-like image Resolution dependent
No white background
Smaller file size
Images created with software that uses geometrical formulas to represent images Images may consist of lines, curves, and shapes with editable attributes such as color, fill, and outline
Vector Image
What do all file formats for the Web have in common? Compression Compression is the key which creates small graphics Web-based image file formats have to implement impressive compression schemes in order to transform large images to small file size There are TWO (2) types of compression: Lossless Lossy
Lossless compression means that even though the file the file is compressed, it will not lose any quality A lossless image will contain identical data regardless of whether it is compressed or uncompressed The popular file format for JPEG uses lossless compression
Lossless compression image
Lossy compression is the opposite of lossless compression; the quality of the compressed image drop Data is removed from the image in order to achieve compression The popular GIF file format uses lossy compression
Usually for fast page loading, Web images should be converted to one of the following formats (developed specifically for onscreen/online use): GIF JPEG PNG
GIF
Ideal for simple Web graphics containing a low number of colors such as some logos, icons, buttons, maps and ornate lines A GIF image is made up of pixels. The color of each pixel contributes to the colors used in the entire image
The maximum number of colors to use in a Web GIF is 256 fine for many images but not usually for photos
JPEG
Stands for Joint Picture Expert Group More complex images than simple logos may be best saved in Jpeg format
JPEG is a high compression format and uses up to about 16.7 million colors
PNG
CorelDRAW
Adobe Illustrator
Adobe Photoshop
To create and prepare your images, use suitable graphicsediting software and make sure you use RGB color mode
Make any edits to your images only at high color depths (16 million colors) and larger physical sizes
Reduce the color depth of the images to a suitable level: GIF (256 or 16 colors) JPG (keep to 16 million colors)
Sometimes, you may want to place an image on a Web page but without keeping the default image background. GIF and PNG images support image transparency
Using pictures and other graphics in Web page has implications that you should be aware of when considering your overall page design One of the most important aspects is the file size of every image/graphic used By file size, we are referring to the combination of the number of colors used (color depth) Big file size = lower download time
Color depth describes how many colors are used to make up an image GIF image may adequately display using 256 colors, photos usually display poorly at this level For photos, 64k or even 16 million colors would probably provide best results.
Color depth can also be described in terms of bits instead of colors The following table illustrates how color and bit depth are related:
Number of Colors
2 colors 16 colors 256 colors 32,768 colors 65,536 colors 16,777,216 colors
Bit Depth
1-bit 4-bit 8-bit 16-bit Also 16-bit 24-bit or 32-bit
(a)
(b)
(c)
2. What are the most common software used to create vector graphic? 3. Why it is suggested to have small file size for graphic on the web?
4.
5.