CS 128/ES 228 - Lecture 7b1 File Formats. CS 128/ES 228 - Lecture 7b2 Outline What is an image really? Methods of storing images Compression algorithms.

Slides:



Advertisements
Similar presentations
Introduction to Computer Graphics Raster Vs. Vector COMMUNICATION TECHNOLOGY.
Advertisements

Unit 30- Digital Graphics THEORY P2 and D2
CS 128/ES Lecture 7a1 Data – How (Much of) It Is Stored.
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 Editing Basics Resolution Screen resolution Printer resolution.
Guilford County SciVis V106.01
V Obtained from a Guildford County workshop-Summer, 2014.
Welcome to a New Quarter Class Rules and Responsibilities What will be learning? 106-Static and Dynamic Visualization 105-Synthesize Data for SciVis Video-Real.
Image Compression CSC CSC Computing with Images2 How do we use fewer bytes to encode the same or similar information? Reduce redundancy Take.
Image and Sound Editing Raed S. Rasheed Image Image. Digital image. – Raster images. – Vector Images. – Stereo Images. – Image File Formats Lossless.
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.
Introduction to Computer Graphics Raster Vs. Vector TGJ 2OI St. Christopher C.S.S. 4 Introduction to Computer Graphics.ppt.
Fonts Typeface Typography. Leading Spacing between lines.
File Formats Different applications (programs) store data in different formats. Applications support some file formats and not others. Open…, Save…, Save.
Graphics Ms. Brewer Spring Bellwork Edmodo – log on! Quiz? Take it if you need to! Policies and Procedures Powerpoint in Shared Folder! Get to Know.
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.
File Formats About graphic file formats And image compression.
Module Code: CU0001NI Technical Information on Digital Images Week -2.
An Introduction to Graphic File Formats.jpg.gif.tiff bmp and.eps and.psd...
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.
All About File Formats Mr. Butler John Jay High School Department of Technology.
Presentation Design: Graphics. More About Color “Bit depth” of colors -- This is based on the smallest unit of information that a computer understands.
SOFTWARE TYPES Word processing Page layout Paint Draw.
THE THEORY & CONCEPTS Lesson 1 – Part 1. What is Graphic Design It’s a CREATIVE PROCESS Undertaken in order to convey a specific message/s I can’t teach.
8 Using Web Graphics Section 8.1 Identify types of graphics Identify and compare graphic formats Describe compression schemes Section 8.2 Identify image.
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.
Information Processes and Technology Multimedia: Graphics.
Raster Graphics. An image is considered to be made up of small picture elements (pixels). Constructing a raster image requires setting the color of each.
CS- 375 Graphics and Human Computer Interaction Lecture 1: 12/4/1435 Fundamental Techniques in Graphics Lecturer: Kawther Abas.
Graphics workshop Library and Information Services University of St Andrews.
File Formats Different applications (programs) store data in different formats. Applications support some file formats and not others. Open…, Save…, Save.
Web Graphics By Chris Harding. Contents  Software  Vector Graphics and Pixel Based  Transparent Images  Compression  GIF vs. JPEG  Animated GIF.
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.
D IGITAL G RAPHICS By Katy Nicholson. W HAT ARE DIGITAL GRAPHICS ? Digital graphics are any images that are produced using software or a computer program.
Image Compression CSC CSC Computing with Images2 Image Compression Goal: reduce redundancy –Encode the same information using fewer bits.
Chapter 2 File Format Objectives (1 of 2) Identify the difference between vector based graphics and bitmap-based graphics Clarify bitmap and vector graphic.
Digital Imaging 101 Ann Ware. Digital Image Categories BITMAP  A vector is created by using a series of mathematically defined lines and curves rather.
Graphic Format Factors
Digital Imaging 101 Ann Ware
Chapter 3 Image Files © 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,
Color and Images. Color The natural colors we see and the colors we see on computer monitors are different. CMYK -natural RGB -monitor.
Raster Graphics 2.01 Investigate graphic image design.
Color and Images. Color The natural colors we see and the colors we see on computer monitors are different. ______ -natural ______ -monitor.
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.
Information Technology Images: Types, Resolution and Techniques.
Introduction to Images & Graphics JMA260. Objectives Images introduction Photoshop.
21 st Century Technology. Painting Uses Pixels Quality of image Changes Drawing Uses Vectors or Lines Quality of Image Does NOT Change.
Chapter 6:Graphics & Multimedia. “ MULTIMEDIA is a seamless integration of data, text, image of all kinds and sound within a digital environment. ” FELDMAN,
Digital Graphics for Computer Games Pixels Types of Digital Graphics (Raster and Vector) Compression.
Image File Formats Harrow Computer Club – Wed, 1 Dec 2010 Bob Watson MA CMath MIMA MBCS.
Information Systems Design and Development Media Types Computing Science.
Computer Graphics Lesson 2 July 12, 2005 Image Formats What are some formats you are familiar with? There are 4 basic image format types: Uncompressed.
Understanding Images. Pixels pixels Every image is made up of very small squares called pixels, and each pixel represents a color or shade. Pixels within.
8th Lecture – Intro to Bitmap or Raster Images
File Formats Different applications (programs) store data in different formats. Applications support some file formats and not others. Open…, Save…, Save.
Digital Imaging 101 Ann Ware.
Types of Graphics Technological Design.
Chapter 3 Image Files © 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,
Introduction to Graphics
Image Formats.
Sci Vis I Exam Review Unit 6 File Formats.
Bitmap vs. Vector.
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.
"Digital Media Primer" Yue-Ling Wong, Copyright (c)2013 by Pearson Education, Inc. All rights reserved.
Building an Online Store
"Digital Media Primer" Yue-Ling Wong, Copyright (c)2013 by Pearson Education, Inc. All rights reserved.
2.01 Investigate graphic image design.
Presentation transcript:

CS 128/ES Lecture 7b1 File Formats

CS 128/ES Lecture 7b2 Outline What is an image really? Methods of storing images Compression algorithms Conversion algorithms In theory In practice

CS 128/ES Lecture 7b3 What is an image? An image is anything we store on the computer that we think of as a “picture”. It should look “the same” on any display. Image file formats GIF, JPEG, TIFF, BMP NOT shapefiles

CS 128/ES Lecture 7b4 File Formats There are many image file formats 35 on the first page I hit looking for a list! Each has advantages and disadvantages

CS 128/ES Lecture 7b5 GIF Developed by Compuserve in 1987 Particularly good for line drawings (anything with sharp edges) VERY common on web

CS 128/ES Lecture 7b6 JPEG (or JPG) Product of the Joint Photographers Experimental Group Good for photos, images with subtle changes Also popular on the web

CS 128/ES Lecture 7b7 GIF vs. JPEG JPEGGIF Use For“Realistic” artworkIllustrations Compre ssion Lossy, but controllable Lossy, no control Colors24-bits8-bits OthersNo transparencyTransparency

CS 128/ES Lecture 7b8 BMP Bitmap format – Windows only? NO Compression means LARGE files Standard Screen Snapshot is BMP

CS 128/ES Lecture 7b9 EPS, PICT, TIFF Encapsulated PostScript (mostly for printing, some display) PICTure format (Macs only) TagInterchageFileFormat (multi- platform, but less used these days

CS 128/ES Lecture 7b10 Shapefiles and active software A running program may read from or write to these formats, but generally uses its own memory management while running. Shapefiles contain shape information and are not in any of these formats – and not truly image files

CS 128/ES Lecture 7b11 Compression Algorithms Compression algorithms “shrink” files May do so by mathematical “tricks” or by discarding information

CS 128/ES Lecture 7b12 Two KEY Facts about Compression NO LOSS-LESS compression algorithm can work all the time! NO LOSSY compression algorithm can regenerate its original data.

CS 128/ES Lecture 7b13 An LOSS-LESS Example Run-length compression Count and record the length of each group of 0’s or 1’s

CS 128/ES Lecture 7b14 A LOSSY Example Truncation

CS 128/ES Lecture 7b15 Converting Vector to Raster Must compute the equation of the line Then choose which pixels to highlight Many algorithms, but differences are technical

CS 128/ES Lecture 7b16 Typical algorithm Y = y0 + 1 Illuminate pixel (x, int(Y)) Y = Y + 1 X = X + 1 /m Illuminate pixel (x, int(Y)) … Until Y == y1 X = x0 Y = y0 Illuminate pixel (x, int(Y)) (x1,y1) (x0,y0)

CS 128/ES Lecture 7b17 Anti-aliasing Basic idea – Remove the “jaggies” by using color variations

CS 128/ES Lecture 7b18 Conversion in practice

CS 128/ES Lecture 7b19 Converting Raster to Vector Basic idea Find areas with sharp changes – these are your boundaries. Adjust as topology indicates Much harder in practice than the other way around Alternative is hand-digitization