SM5312 week 3: web graphics1 Web Graphics Nick Foxall.

Slides:



Advertisements
Similar presentations
Iframes & Images Using HTML.
Advertisements

Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 4 Key Concepts 1 Copyright © Terry Felke-Morris.
Image Data Representations and Standards
A Digital Imaging Primer Nick Dvoracek Instructional Resources Center University of Wisconsin Oshkosh.
Chapter 17 Creating Images for the Web. Chapter Lessons Learn about Web features Optimize images for Web use Create a button for a Web page Create slices.
Dale & Lewis Chapter 3 Data Representation. Representing color Similarly to how color is perceived in the human eye, color information is encoded in combinations.
Multimedia for the Web: Creating Digital Excitement Multimedia Element -- Graphics.
Introduction to Web Site Development Steven Emory Department of Computer Science California State University, Los Angeles Lecture 3: Hyperlinks and Images.
Graphics in the web Digital Media: Communication and Design
Introduction to Computer Graphics
Guilford County SciVis V106.01
Photoshop: Designing Graphics for the Web Christine Vucinich & Vicki Weidler ITS Training Services 224 B Computer Building University Park, PA 16802
Manipulating Images Image A visual representation of something that is seen in real life. It can be two-dimensional or three-dimensional A visual representation.
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.
Digital Images. Scanned or digitally captured image Image created on computer using graphics software.
Chapter 5 Web Graphics Styling Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
Russell Taylor Week 3. Image File Formats - TIF, JPG, PNG, GIF - which to use? The three most common and important image file formats for for printing,
Chapter 3 Adding Images in HTML. Agenda Understanding Web Page Images Prepare Your Images for the Web Insert an Image Specify an Image Size Add Alternative.
Chapter 14-Designing for the World Wide Web. Overview Introducing multimedia on the Web. Designing text for the Web. Creating images for the Web. Adding.
1 Creating Web Graphics Outline 2.1 Graphics Types 2.2 Vector Graphics 2.3Bitmapped Graphics 2.4Graphics for the Web 2.5 GIF (Graphics Interchange Format)
GRAPHICS/IMAGES INFSCI Source: Learning Web Design by Jennifer Niederst RobbinsJennifer Niederst Robbins Creating Images:  Scanning  Be aware.
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.
COMP Bitmapped and Vector Graphics Pages Using Qwizdom.
Module Code: CU0001NI Technical Information on Digital Images Week -2.
Lecture 4 - Introduction to Computer Graphics
Colors, Images, & Image Maps. Working with Color Colors are defined in terms of RGB Triplet –Red, Green, Blue –0 to 255 in intensity –(00, 00, 00) is.
Graphic images for computers Stored in files of binary data - Binary blobs Software has to know the binary format to decode the file and render an image.
HTML Boot Camp: Rules and Images
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.
Copyright © 2003 Pearson Education, Inc. Slide 4-1 Created by, Stephanie Ludi, Rochester Institute of Technology—NY Basic Web Page Construction Graphics.
Basic Knowledge of Web creation. Computer graphic knowledge Graphic file has 2 types Raster Graphic A bitmap or raster image are comprised of pixels in.
Photoshop Software Rasterized, file formats, and printing choices.
Images Inserting an image on a web page. chcslonline.org2 ITEMS REQUIRED Go to the course download page on the course website and download the 3 images.
Images in web pages. Images Why do we use images? They add interest, and keep the user from being bored They convey information –Charts are easier to.
Chapter 5 Web Graphics Styling Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
8 Using Web Graphics Section 8.1 Identify types of graphics Identify and compare graphic formats Describe compression schemes Section 8.2 Identify image.
1 Web Developer Foundations: Using XHTML Chapter 4 Key Concepts.
1 Web Developer & Design Foundations with XHTML Chapter 4 Key Concepts.
Digital Cameras And Digital Information. How a Camera works Light passes through the lens Shutter opens for an instant Film is exposed to light Film is.
Section 8.1 Create a custom theme Design a color scheme Use shared borders Section 8.2 Identify types of graphics Identify and compare graphic formats.
Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 3 This presentation © 2004, MacAvon Media Productions Introduction to Computer Graphics.
Graphics workshop Library and Information Services University of St Andrews.
ADOBE PHOTOSHOP VECTOR VS RASTER. Pixel A pixel is the fundamental unit of an image in Photoshop. It is a small square block of color. An image often.
10 | Graphics COM 366 Web Design & Production. Native file format –Format native to software program –psd > PhotoShop default Preserves layers –Use “Save.
2D Graphics Theory & Principles. Single Point Smallest addressable area on screen or digital image.
File Formats and Vector Graphics. File Types Images and data are stored in files. Each software application uses different native file types and file.
Types of Graphics  Vector Individual scalable objects defined by mathematical equations  Bitmap Pixels (tiny, single-colored square) in a grid Most.
Chapter 3 Image Files © 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,
Adobe Dreamweaver CC: The Professional Portfolio Project 3: Photographer’s Web Site Working with static images Controlling backgrounds with CSS Working.
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.
Introduction to Images & Graphics JMA260. Objectives Images introduction Photoshop.
Image File Formats Harrow Computer Club – Wed, 1 Dec 2010 Bob Watson MA CMath MIMA MBCS.
Graphics and Image Data Representations 1. Q1 How images are represented in a computer system? 2.
HTML5 and CSS3 Illustrated Unit F: Inserting and Working with Images.
BITMAPPED IMAGES & VECTOR DRAWN GRAPHICS
Chapter 3 Image Files © 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,
Basic Knowledge of Web creation
Raster Images CPSC 1030.
A computer display is made up of small squares, called pixels.
Web Development & Design Foundations with HTML5 7th Edition
Introduction to Computer Graphics
Representing Images 2.6 – Data Representation.
Web Design and Development
Photoshop: Creating and Preparing Images for the Web
Creating Images for the Web
Web Programming– UFCFB Lecture 7
Lecture 4 - Introduction to Computer Graphics
Presentation transcript:

SM5312 week 3: web graphics1 Web Graphics Nick Foxall

SM5312 week 3: web graphics2 Graphics on Computers Any image displayed on a computer screen* is an array of small square dots of colour, called pixels. There are two types of image representation used for computer graphics: 1.bitmaps 2.vector graphics. [*screen can now include almost any device, including mobile phones, PDAs, and flat panel TVs]

SM5312 week 3: web graphics3 Graphics on Computers: Bitmaps Bitmaps A bitmapped image consists of an array of colour values, one for each pixel in the image.

SM5312 week 3: web graphics4 Graphics on Computers: Bitmaps Bitmaps… are most suitable for images with continually varying tones, such as photographs.

SM5312 week 3: web graphics5 Graphics on Computers: Vectors Vector Graphics Created from the mathematical description of a picture, defined from a collection of geometrical shapes, together with stroke and fill information.

SM5312 week 3: web graphics6 Graphics on Computers: Vectors Vector Graphics… Are most suitable for line art, flat-colour drawings and patterns, and cartoon-style images

SM5312 week 3: web graphics7 Bitmaps vs. Vectors Comparison BitmapVector Graphic

SM5312 week 3: web graphics8 Bitmaps vs. Vectors Resolution and device dependent: scales to the ‘size’ of the output device Larger file size Resolution and device independent: scalable (theoretically to any size) Smaller file size BitmapVector Graphic 

SM5312 week 3: web graphics9 Graphics for the web Used on the webNot used on the web (Except for SVG, and within Flash SWF) BitmapVector Graphic  MUST CONVERT

SM5312 week 3: web graphics10 Graphics on Screen RGB The colour of a pixel on any display is made up of proportions of the three additive primaries: red, green and blue. The RGB colour model represents any colour by three numbers, specifying the relative proportions of red, green and blue. With 24-bit colour (one byte for each of R, G and B) about 16.7 million different colours can be represented.

SM5312 week 3: web graphics11 Graphics on Screen: Colour Space Colour Space Colour spaces are a general mechanism for representing colours as a finite sequence of numerical values. They depend on the precise values used for red, green and blue. sRGB is a standardized colour space recognised by the World Wide Web Consortium for use in web images colorsync

SM5312 week 3: web graphics12 RGB in Photoshop Always work on colour images for the web (and video) in RGB mode. Black-and-white photos can be set to Greyscale mode. Images in Indexed Color mode may have to be converted to RGB before any adjustments can be made

SM5312 week 3: web graphics13 Web Graphic Formats Only 3 bitmapped image file formats supported in most web browsers: GIF JPEG PNG

SM5312 week 3: web graphics14 Web Graphic Formats: GIF GIF (Graphics Interchange Format) Originally devised for users of the Compuserve Bulletin Board system in the 1980’s GIF images are indexed colour images, supporting up to 256 colours only GIFs can include more than one image in a single file (can support simple animation) GIFs can support transparency (one colour only) GIFs support lossless compression (though lossy compression can be added) File extension:.gif

SM5312 week 3: web graphics15 Web Graphic Formats: JPEG JPEG (Joint Photographic Experts Group) A specification laid down by the Joint Photographic Experts Group, part of the International Standards Organisation (ISO) JPEG images are 24-bit colour images (mostly RGB) Only a single image can be stored in one JPEG file (no animation capability) JPEGs do not support transparency JPEGs support lossy compression, and allow for progressive compression / decompression File extension:.jpg.jpeg

SM5312 week 3: web graphics16 Web Graphic Formats: PNG PNG (Portable Network Graphics) Devised as a replacement for the GIF format in the mid-1990s PNG images can be saved as full 24-bit colour images, OR as indexed colour images: PNG-24 PNG-8 Only a single image can be stored in one PNG file (no animation) PNGs support transparency using alpha channels, meaning a range of transparency can be supported (e.g. a colour allowing a background to show through) PNGs support lossless compression, and allow for progressive compression / decompression (called ‘interlaced’) File extension:.png

SM5312 week 3: web graphics17 Web Graphics: Resolution Standard screen resolution is generally agreed to be 72 ppi (pixels per inch) The actual physical size of one screen from another may vary though: a 1024 x 768 pixel screen may be 17 inches (diagonal) physical size, or 20 inches (diagonal) physical size — its the size of the pixels that are different Mobile devices now have very fine pixels — 3.5 inch screens, but up to 166 pixels per inch, creating 480 x 320 pixel screens A 72 ppi image will always occupy the same proportion of a screen, no matter how big or small the screen is physically

SM5312 week 3: web graphics18 Web Graphics: Resolution & Resampling Images for embedding in Web pages should always be saved at screen resolution, which is taken to be 72 ppi The process of changing an image’s resolution is called resampling, and always potentially involves a loss of quality When the resolution is reduced, the process is called downsampling

SM5312 week 3: web graphics19 Web Graphics: Resolution & Resampling We often need to downsample images for the web to get them to screen resolution (72 ppi) AND to get them to an appropriate pixel dimension required for a web page layout This saves file size, AND reduces unnecessary use of bandwidth when users access your page

SM5312 week 3: web graphics20 Web Graphics: Resampling The 2 most common algorithms for resampling are; Bilinear Interpolation Bicubic Interpolation Bicubic is often preferred, as it produces better results

SM5312 week 3: web graphics21 Web Graphics: Compression Compressing bitmapped images reduces the amount of storage they require, AND the time they take to transfer over a network (bandwidth usage) Compression algorithms may be lossless or lossy. Lossless: file is compressed, without any loss of original image quality Lossy: file is compressed, but with (permanent) loss of original image quality; Degree of loss dependent on amount of compression: a balance has to be found

SM5312 week 3: web graphics22 Web Graphics: Lossless Compression Rearranges data in the image file, but does not discard data Works better for ‘graphic’ style images, and for text- turned-to-image situations, where large blocks of colour are more effectively compressed Lossless compression algorithms include LZ77, LZ78, LZW and Huffman GIF and PNG web file formats use lossless compression

SM5312 week 3: web graphics23 Web Graphics: Lossy Compression Rearranges data in the image file, and discards data that is (generally) not easily perceived by the eye Works better for continuous tone images, photographs The JPEG web file format use lossy compression, and employs its own compression algorithm Programmes like Photoshop allow the designer to control and compare the degree of compression against the loss in image quality, and strike a balance

SM5312 week 3: web graphics24 Web Graphics: Quality vs. Compression Image quality File size

SM5312 week 3: web graphics25 Web Graphics: Anti-aliasing The smoothing of fine lines and edges in order to produce better results at lower (i.e. screen) resolutions Anti-aliasing softens “the jaggies” —the jagged edge effect: Particularly useful for rendering text as a graphic

SM5312 week 3: web graphics26 Web Graphics: Transparency (indexed) Transparency (a transparent background, or a transparent area of an image) can be set in GIF and PNG file formats GIF and PNG-8 (both indexed colour formats) support selection of a single colour as a transparent colour. Getting the edges of other colours to look smooth against the image’s final background involves dithering

SM5312 week 3: web graphics27 Web Graphics: Transparency (alpha) Transparency (a transparent background, or a transparent area of an image) can be set in GIF and PNG file formats PNG-24 uses alpha channel transparency Meaning degrees of transparency (or opacity) can be included in a PNG-24 file, allowing a background to show through in various ways

SM5312 week 3: web graphics28 Web Graphics in XHTML Images may be embedded in an XHTML document using the empty, inline img element, whose src attribute’s value is the URL of a GIF, JPEG or PNG file. Example: The compulsory alt attribute provides a short text alternative. A CSS title attribute also provides a small text box that describes an image in more detail when rolled over.

SM5312 week 3: web graphics29 Web Graphics in XHTML Images can be made into clickable hyperlinks. Simply wrap a hypertext reference a href tag around the img tag: This is mostly used for creating image-based navigation buttons The image will likely have a blue border, similar to the text underline, indicating a hyperlink. But normally we use CSS to hide or turn off all image hyperlink borders. Example: img { border:0; }

SM5312 week 3: web graphics30 Web Graphics in CSS Images may be referenced in a CSS document or specification, usually with a simple URL link to the image. Images can be used for backgrounds and borders in CSS. Example for a background image in the body element: body { background-color: #FFFFFF; background-image: url(background.png); background-repeat: repeat-x; }

SM5312 week 3: web graphics31 Web Graphics in XHTML: image maps An image map contains “hot spots”, which act as link anchors. “Hot spots” may be defined by the shape and coords attributes of area or a elements within a map element “Hot spots” are referred to by a usemap attribute of the img tag. The easiest way to create image maps is within DreamWeaver!

SM5312 week 3: web graphics32 Other Web Image Formats SVG (Scalable Vector Graphics) A vector graphics markup language recommended by the W3C (World Wide Web Consortium) Has little support and is rarely used SWF (ShockWave Flash) Flash animations employ vector graphics, although since Flash 7, bitmap elements and effects have also been added Both formats are embedded into XHTML documents using the object tag