Multimedia – Graphics AND Image Types

Slides:



Advertisements
Similar presentations
Multimedia Mr. Sanchez.
Advertisements

Color COM 366 Web Design & Production. RGB color Amount of light in each channel Closer to 255, whiter color gets Every color has value for red,
Multimedia for the Web: Creating Digital Excitement Multimedia Element -- Graphics.
Graphics CS 121 Concepts of Computing II. What is a graphic? n A rectangular image. n Stored in a file of its own, or … … embedded in another data file.
Image Processing, Illustration (Drawing), Paint Programs, and Scanning Dr. Warren C. Weber Cal Poly Pomona.
Graphics in the web Digital Media: Communication and Design
Introduction to Computer Graphics
V Obtained from a Guildford County workshop-Summer, 2014.
Graphic File Formats. Objectives Understand the difference between two major categories of computer graphic images Investigate the differences between.
CSC1720 – Introduction to Internet Essential Materials
Photoshop: Designing Graphics for the Web Christine Vucinich & Vicki Weidler ITS Training Services 224 B Computer Building University Park, PA 16802
Part A Multimedia Production Rico Yu. Part A Multimedia Production Ch.1 Text Ch.2 Graphics Ch.3 Sound Ch.4 Animations Ch.5 Video.
Prepared by George Holt Digital Photography BITMAP GRAPHIC ESSENTIALS.
GRAPHICS/IMAGES INFSCI Source: Learning Web Design by Jennifer Niederst RobbinsJennifer Niederst Robbins Creating Images:  Scanning  Be aware.
CS 1308 Computer Literacy and the Internet. Creating Digital Pictures  A traditional photograph is an analog representation of an image.  Digitizing.
Images and the Web web graphics. web graphics: constraints Due to the constraints imposed by varying degrees of Internet bandwidth, designing images for.
Faculty of Sciences and Social Sciences HOPE Website Development Graphics Stewart Blakeway FML 213
File Formats COM 366 Web Design & Layout. Native file format –Format native to software program –.psd > PhotoShop default Preserves layers –Use “Save.
Multimedia Specification Design and Production 2012 / Semester 1 / L4 Lecturer: Dr. Nikos Gazepidis
THE COLORS OF LIGHT RED, GREEN and BLUE
Image Storage Bitmapped Graphics – in which an image is represented as a collection of dots Vector Graphics – in which an image is represented as a set.
Presentation Design: Graphics. More About Color “Bit depth” of colors -- This is based on the smallest unit of information that a computer understands.
1 Perception, Illusion and VR HNRS 299, Spring 2008 Lecture 14 Introduction to Computer Graphics.
Digital Image: Representation & Processing (2/2) Lecture-3
1 Web Developer Foundations: Using XHTML Chapter 4 Key Concepts.
Common file formats  Lesson Objective: Understanding common file formats and their differences.  Learning Outcome:  Describe the type of files which.
Information Processes and Technology Multimedia: Graphics.
GRAPHICS. Topic Outline What is graphic. Resolution. Types of graphics. Using graphic in multimedia applications.
10 | Graphics COM 366 Web Design & Production. Native file format –Format native to software program –psd > PhotoShop default Preserves layers –Use “Save.
Web Graphics. Colours and Display Graphics and Modems 28.8kbps = 3.6 KB per second 36 KB takes 10 seconds to load. Pixels and color.
File Format. Graphics file Format GIF (Graphics Interchange Format) JPEG (Joint Photographic Experts Group) PNG (Portable Network Graphics) TIFF (Tag.
Types of Graphics  Vector Individual scalable objects defined by mathematical equations  Bitmap Pixels (tiny, single-colored square) in a grid Most.
Chapter 2 File Format Objectives (1 of 2) Identify the difference between vector based graphics and bitmap-based graphics Clarify bitmap and vector graphic.
Unit 1: Task 1 By Abbie Llewellyn. Vector Graphic Software (Corel Draw) Computer graphics can be classified into two different categories: raster graphics.
Graphics & Images What File Format Do I Use?. Graphics & Images …..are visual images presented on some form of media (drawings, print, web, digital video)
Color and Images. Color The natural colors we see and the colors we see on computer monitors are different. CMYK -natural RGB -monitor.
File Types. Terms Multimedia- the integration of text, sound, video and/or animation into a document Letters, brochures, newsletters, web pages or presentations.
Graphic definitions Summary of Chapter 10 of the Non-designer’s web book by Robin Williams and John Tollet. Pages ( ) Miss Mary Victor.
Web Graphics. Web graphics Bandwidth is king Graphics must load quickly Graphics must be optimized All other components except for text, gif and jpg are.
Digital Images are represented by manipulating this…
Image File Formats. What is an Image File Format? Image file formats are standard way of organizing and storing of image files. Image files are composed.
HTTP transaction with Graphics HTML file + two graphics files.
Graphics and Image Data Representations 1. Q1 How images are represented in a computer system? 2.
Efficient Game Graphics From Flash MX 2004 Game Design Demystified.
BITMAPPED IMAGES & VECTOR DRAWN GRAPHICS
2.01 Understand Digital Raster Graphics
2.01 Understand Digital Raster Graphics
DIGITAL MEDIA FOUNDATIONS
Chapter 3 Image Files © 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,
Binary Representation in Audio and Images
2.01 Understand Digital Raster Graphics
Digital Photo editing with Photoshop
Image Formats.
Chapter 3 Graphics and Image Data Representations
Raster Images CPSC 1030.
Chapter 3 Image Files © 2017 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.
A computer display is made up of small squares, called pixels.
GRAPHICS Source:
Image File Size and File Compression
Chapter 3:- Graphics Eyad Alshareef Eyad Alshareef.
Graphics Basic Concepts.
Multimedia – Graphics AND Image Types
Web Design and Development
2.01 Understand Digital Raster Graphics
MED 2001 Advanced Media Production
Web Design Designing for the Unknown.
2.01 Understand Digital Raster Graphics
Web Programming– UFCFB Lecture 7
Color and Images.
Multimedia System Image
Presentation transcript:

Multimedia – Graphics AND Image Types

Outline Why multi-media? True color Bitmap Different multi-media formats True color Bitmap Color Palette, Gamma, Dithering Lossless & Lossy compression GIF, JPEG, PNG formats Web graphics tips Summary CS118 – Web Engineering

Multimedia Formats File Format Type of File Filename Extension Sun Systems sound audio .au Windows sound .wav Audio interchange .aiff, .aifc RealAudio audio stream .ra, .ram CompuServe GIF graphics .gif JPEG .jpg, .jpeg Windows Bitmap .bmp QuickTime video .mov, .moov, .qt Video for Windows .avi MPEG video .mpg, .mpeg CS118 – Web Engineering

Bitmaps, Pixels & Colors The colored dots that make up a bitmap are properly called "pixels". Web pages are measured in Pixels but not in inches, picas. Color is represented on a computer by using varying amounts of red, green and blue light. These are the primary colors of what's called "additive" color - by adding percentages of red, green and blue, any color can be created. In the simplest sort of bitmapped image, each pixel is represented by three numbers to store the amounts of red, green and blue light that define the color of the pixel in question. CS118 – Web Engineering

True Color Bitmap As a byte represents eight bits, each pixel requires 24 bits to store all its color information. This defines the maximum number of discrete colors this sort of bitmap can represent as 224, or 16,777,216. Such graphics are referred to as “True Color" images, or just as "24-bit" graphics. CS118 – Web Engineering

Size consideration in a true-colored bitmap image The lowest resolution for a monitor displaying a Windows desktop is 640 by 480 pixels. In a bitmap of this resolution, then, there would be three bytes per pixel, for a total of 640 x 480 x 3 bytes, or about 900 kilobytes. Bitmapped graphics are huge entities, and they become huger still as they get better looking. CS118 – Web Engineering

Bit-Depth = Color-Depth Number of Colors = 2^(Bit-depth) Bit-depth is the number of bits. It is also called “Color resolution”. Bit depth Color resolution Calcuation 1-bit 2 colors 2^1 = 2 2-bit 4 colors 2^2 = 4 3-bit 8 colors 2^3 = 8 4-bit 16 colors 2^4 = 16 8-bits 256 colors 2^8 = 256 16-bits 65,536 colors 2^16 = 65536 24-bits 16,777,215 colors 2^24 = 16.7 million CS118 – Web Engineering

8-bit and 24-bit photos Can you see the difference? CS118 – Web Engineering

Color Palettes Photorealistic images look best if they're stored in a format which allows them to be reproduced with as many of the 16,777,216 colours in a computer. For practical purposes, the next step down from a file which can store images having a maximum of 16,777,216 colours, is one which can store images having a maximum of 256 colours. Such files are referred to as using "palette-colour“. The colours in a palette-colour file are derived from a potential palette of 16,777,216 colours, but no more than 256 of them can be used in any one image. CS118 – Web Engineering

The Web Palette Color in Browser – 24-bit color displays on an 8-bit monitor display. Need a common palette (Web Palette) for browser, guarantees the image will look the same on different platforms. Web Palette consists of 216 colors Also called: Web-safe Palette, Non-dithering Palette, 6x6x6 cube. CS118 – Web Engineering

Which Color Palette? Black (0,0,0) Blue (0,0,255) Why 00,33,66, 99,CC,FF? Green (0,255,0) Which one is (99,FF,CC), (153,255,204)? Red (255,0,0) White (FF,FF,FF) (255,255,255) CS118 – Web Engineering

6x6x6 Color Palette CS118 – Web Engineering

True Color (RGB) “Palette” CS118 – Web Engineering

Standard Web Palette CS118 – Web Engineering

Define RGB Values Decimal Hexadecimal Percentage Ranging from 0 to 255. 51-51-255 means red value is 51, green value is 51, blue value is 255. Hexadecimal Base-16 number system Only six characters to describe RGB color. 51-51-255 is 3333FF. Percentage 51-51-51 is 20%-20%-100% 00,33,66,99,CC,FF – 0%,20%,40%,60%,80%,100% Some old Macintosh programs use it. CS118 – Web Engineering

Gamma Refers to the overall brightness of the display of a computer monitor. The relationship of voltage and the light intensity. Default gamma setting varies from platform to platform Macintosh – 1.8 Gamma PC – 2.2 Gamma UNIX – 2.4 Gamma The higher the gamma value, the darker the display. Image created on PC looks wash out on Macintosh. CS118 – Web Engineering

Gamma Control Different Gamma Value CS118 – Web Engineering

Gamma Value Gamma: 2.4 Gamma: 1.8 Gamma: 1.0 CS118 – Web Engineering

Dithering 256 colours are not sufficient to represent a photorealistic image so it looks photorealistic. Browsers approximate a color by dithering. There is a way to cheat around this problem - photorealistic images can be dithered to 256 colours to create a convincing simulation of all their colours. Dithering involves using patterns of alternating colored dots to simulate more colors than are actually available. Dithering creates precisely the sort of images that compress very badly. CS118 – Web Engineering

Dithering How to CS118 – Web Engineering

Dithering Example No dithering and dithering Which one is better? CS118 – Web Engineering

Vector Graphics In addition to bitmap graphics, there are vector graphics. Vector graphics define pictures as collections of lines, ellipses, triangles, polygons and other basic graphic "primitives." Vector graphic formats include Encapsulated PostScript files, which use the extension EPS, Corel Draw files, which use the extension CDR, AutoCAD drawings, which use the extension DXF. CS118 – Web Engineering

Vector Graphics Scaling vector graphics CS118 – Web Engineering

Bitmap vs. Vector graphics CS118 – Web Engineering

Bitmap and Vector graphics file format Vector-based files are more suitable for illustrations that require precise measurements. File names for vector-based images usually consist of extensions such as *.EPS, *.AI, *CDR, or *.DWG. Bitmap-based files are more suitable for photo-realistic images that require complex color variations. File names for bitmap-based images usually consist of extensions such as *.PSD, *.JPG, *GIF, *.TIF, or *.BMP. CS118 – Web Engineering

Break Time – 10 minutes

Optimizing Web Graphics According to the compression method used, graphic file formats can be regarded as being of three types. Compression works by finding areas in your graphics which are all the same color and replacing them with notes which say, in effect "this area is all the same color." The first type stores graphics uncompressed. Windows BMP (.bmp) files are an example of this sort of format. CS118 – Web Engineering

Lossless Compression The second type is called "non-lossy“ or “lossless” compression formats. Whatever gets stored in them will be identical to what emerges from a lossless file when it's unpacked. Most graphic formats use lossless compression - the GIF and PCX formats are among them. CS118 – Web Engineering

Lossy Compression Lossy compression seeks to improve upon the compression of the graphics it deals with by throwing away some of the details in your source images to create more areas which are all the same colour. Examples of lossy image file format are JPEG, PIC, and ART.

GIF Format GIF – Graphics Interchange Format The GIF format is one of the most commonly used graphic file formats, especially on the Internet. The GIF format is exceedingly useful in that it can contain animations. The GIF format also allows a special color as to be specified as "using the background." This results in the image looks like transparent transparent GIF. CS118 – Web Engineering

Animated GIF Advantages: No need other software or plugins GIF is the standard format on the Web. GIF animated tools are available to use. The file contains layered frames on top of each other. CS118 – Web Engineering

Animated GIF CS118 – Web Engineering

GIF Format GIF is indexed color image. The color of the image is indexed in a palette (a color table). The GIF format is only capable of supporting a maximum of 256 colors. This means that you cannot convert directly from a 24 bit file, such as a JPEG, to the GIF format. You need to convert a 24-bit image to Indexed Color mode first. CS118 – Web Engineering

Interlacing Normal GIF displays one row of pixels at a time, from top to bottom. Wait a long time for a slow connection. GIF87a and GIF89a support interlacing. Display in 4 passes 1 pass: appearance of blurry mosaic (12.5%) 2 pass: fill more data to the image (25%) 3 pass: more data (50%) 4 pass: fill up the whole image (100%) CS118 – Web Engineering

Interlaced Image CS118 – Web Engineering

Transparency GIF The image can be shapes other than rectangles. One position of the color palette is designated as “Transparent”. All pixels of the image that have this particular color index will be painted as transparent when viewing. CS118 – Web Engineering

Transparency GIF Not a transparent GIF a transparent GIF CS118 – Web Engineering

JPEG Format JPEG – Joint Photographic Experts Group The JPEG format uses "lossy" compression to get more graphics into a smaller file than would otherwise be possible. An image written to the JPEG format will be degraded. The amount of degradation, the "quality factor," can usually be set in a graphics software. The default value of 75 is usually a good compromise. CS118 – Web Engineering

Progressive JPEG There are two types of JPEG files extant as of this writing, called "sequential" and "progressive". A sequential JPEG file stores its image as a simple bitmap. A progressive JPEG files stores its image such that it can appear initially out of focus when it begins to download to a web page, and resolve itself as more of the image is received by your web browser. Advantage: Provide indication of the whole image to the viewer before the entired image is loaded. Disadvantage: Require more computational power to display. CS118 – Web Engineering

Progressive JPEG CS118 – Web Engineering

Photoshop and Corel PhotoPaint Quality Setting CS118 – Web Engineering

GIF versus JPEG GIF JPEG Best application Line Art, Image with few color text Photographs, Image with many colors How to reduce display time? Interlace Interlace (Progressive) Display speed Fast Slower, more computation Benefits Transparency, Animation Greatest compress for photographs, more color Max. color 256 16.7 million CS118 – Web Engineering

PNG Format Portable Network Graphic (PNG) which is pronounced as “Ping”. Alternative to GIF, a lossless compression scheme is used. Support three image type: true color, grayscale, palette-based (8-bit). JPEG supports the first 2. GIF supports the 3rd one. CS118 – Web Engineering

PNG Format Advantages Disadvantages Better Compression Improve Interlacing. True Color and Transparency Support 16-bit (Grey scale) or 48-bit (True Color) 16-bit for alpha channel (Transparency). Gamma storage Store the gamma setting of the platform of the creator. Disadvantages Not support by old browsers (Netscape 2,3,4 and IE 2,3,4) CS118 – Web Engineering

PNG Format PNG's 2D interlacing (left) compared with GIF's 1D interlacing (right) CS118 – Web Engineering

Format Comparison Format Compression Ratio GIF 4:1 – 10:1 JPEG (HQ) 10:1 – 20:1 (no loss image) JPEG (LQ) 60:1 – 100:1 (previews) PNG 10-30% smaller than GIF CS118 – Web Engineering

Other Formats JPEG 2000 – New JPEG specification, lossy to lossless compression, wavelet transform, superior compression. ART – built-in color reduction, dither, gamma correction. Wavelet – transform an image as a frequency representation, like waves. Bravo – multi-platform 2D engine of Adobe’s graphic format. FlashPix – developed by Kodak, HP, ... CS118 – Web Engineering

Optimizing Web Graphics – Tips for small files Minimize the dimension and maximum crop. Reduce the number of color used. Choose the color from the non-dithering palette. Use aliased fonts, anti-aliasing increase size.

END CS118 – Web Engineering