1 / 16

Graphics on the web

Detailed analysis for popular image files that are used on the web.

Download Presentation

Graphics on the web

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 1. Graphics on the Web • Images were not always used so often in Web pages as today because of : • low connection speeds. • and graphics file size. • Today thinks have changed. • Faster connection speeds. • Better browser support. • Computer processors and graphics cards improved. • Higher-resolution screens became available. • Larger screens fell in price and became more widespread.

  2. 1.1 Graphics on the Web • Graphic file formats are broadly categorized into : • bit-mapped. • vector formats. • Bit-mapped are composed of a pattern of dots • Vectorgraphics use geometrical formulas to represent images. .

  3. 2. Use of Graphics • Create a site’s identity. • Better understanding of the Contents. • Better for emphasis. • Don’t have to rely on user’s imagination. • Embellishment of Pages. • Make pages more interesting. • Avoid Usage of large blocks of text.

  4. 2.1 Use of Graphics • In-line

  5. File Formats • GIF (Graphics Interchange Format) • JPEG (Joint Photographers Expert Group) • PNG (Portable Network Graphics) • SVG (Scalable Vector Graphics) • Flash (Macromedia Format) • Other Formats…..

  6. 4. GIF Specificaton Definition • The Graphics Interchange Formatdefines a protocol intended for the on-linetransmission and interchange of raster graphic data in a way that isindependent of the hardware used in their creation or display. Version Nubmer • Identifies the minimum set of capabilities required of a decoder in order to fully process the Data Stream.

  7. 4.1 GIF Specificaton • Encoder : • Creates a Gif Data Stream. • Produces the necessary control and data blocks needed for reproducing the original graphics. • Responsibilities : • Include in the Data Stream all the necessary information to reproduce the graphics. • Insure that a Data Stream is labeled with the earliest possible Version Number that will cover the definition of all the blocks in it. • Avoid redundant information as much as possible. • Avoid grouping graphics which might require resetting hardware parameters during the decoding process. • Set to zero each of the bits of each and every field designated as reserved.

  8. 4.2 GIF Specificaton Decoder • The Decoder is the program used to process a GIF Data Stream. Responsibilities : • Process each graphic in the Data Stream in sequence, withoutdelays other than those specified in the control information. • Set its hardware parameters to fit, as closely as possible, the control information contained in the Data Stream. Compliance • An encoder or a decoder is said to comply with a given version of the Graphics Interchange Format if and only if it fully conforms with and correctly implements the definition of the standard associated with that version.

  9. 4.3 GIF Specificaton Color Tables • The GIF format utilizes color tables to render raster-based graphics. • A color table can be global or local. • A Global Color Table is used by graphics in the Data Stream which do not have a Local Color Table associated with them. • A Local Color Table is always associated with the graphic that immediately follows it. • A Local Color Table supersedes a Global Color Table if a Data Stream contains a Global Color Table, and an image has a Local Color Table associated with it. • The decoder must save the Global Color Table, use the Local Color Table to render the image, and then restore the Global Color Table. • Both types of color tables are optional. • If a Global Color Table from a previous Stream is used, that table becomes the Global Color Table of the present Stream.

  10. 4.4 GIF Specificaton • If no color table is available at all, the decoder is free to use a system color table or a table of its own. Differences : • A Local Color Table is limited to a Single graphic. • The scope of the Global Color Table is the entire Data Stream. Blocks Blocks can be classified into three groups : • Control, • Graphic-Rendering and • Special Purpose.

  11. 4.5 GIF Specificaton • Control blocks, such as the Header, the Logical ScreenDescriptor, the Graphic Control Extension and the Trailer, contain informationused to control the process • of the Data Stream • or information used in settinghardware parameters. • Graphic-Rendering blocks such as the Image Descriptor and the Plain Text Extension contain information and data used to render a graphic on the display device

  12. GIF General Features • Developed by Campus Serve. • Two types : • GIF87a • GIF89a • First graphic file type to be displayed byearly web browsers. • Most popular file format. • Platform independent. • Doesn't require plug-ins • Supported by all Browsers.

  13. GIF General Features2 • Uses the Run-length-Encoding. • Works well with large areas of continuous color. • Supports one-bit transparency. • Supports animation.

  14. File Formats-- GIF Usage • Images with flat color and crisp detail such as : • Line art. • Logos. • Illustrations. • Buttons • Bullets • Cartoons.

  15. File Formats-- GIF Minimizing File Size • Scale large images down. • Crop non important areas of the picture. • Avoid large graphics unless necessary. • Design with flat color. • Fill areas with solid colors rather than gradients. • Limit the amount of photographic material. • Favor horizontal fields of color in your designs. • Turn off anti-aliasing when it isn’t necessary. • Reduce number of colors. • Limit Dithering.

  16. File Formats– JPEG 2000 Basic Features • State-of-the-art low bit-rate compression performance. • Progressive transmission by quality, resolution, component, or spatial • locality • Lossy & lossless compression. • Random (spatial) access to the bit-stream. • Pan and zoom (with decompression of only a subset of the compressed data). • Compressed domain processing. • Region of interest coding by progression. • Limited memory implementations.

More Related