Image Compression CSC 1040. CSC 1040 - Computing with Images2 How do we use fewer bytes to encode the same or similar information? Reduce redundancy Take.

Slides:



Advertisements
Similar presentations
CHS GRAPHICS GDP UNIT 01 FILE FORMATS Understanding File Formats.
Advertisements

L.Ghadah R. Hadba CT1514-L1.  Computer Graphics :refers to processing of creating a new image from Geometry, Lighting parameters, Materials and Textures.Using.
Dan Sadler Montgomery County Department of Information Systems & Telecommunications - GIS Team (DIST-GIS) Map Gallery.
Graphic Arts Graphics Formats: What You Need to Know About the Pictures 1.
CS 128/ES Lecture 7a1 Data – How (Much of) It Is Stored.
2.01 Understand Digital Raster Graphics
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.
File Formats The most common image file formats, the most important for cameras, printing, scanning, and internet use, are JPG, TIF, PNG, and GIF.
Photoshop: Designing Graphics for the Web Christine Vucinich & Vicki Weidler ITS Training Services 224 B Computer Building University Park, PA 16802
File Types, Sizes & Dots Per Inch (dpi) Best practices applied to Photoshop file formats when creating media-specific documents. Bit Depth is the number.
Digital Images. Scanned or digitally captured image Image created on computer using graphics software.
 Scanned or digitally captured image  Image created on computer using graphics software.
Introduction to Graphic Arts Technology PRINT Versus WEB.
File Formats Different applications (programs) store data in different formats. Applications support some file formats and not others. Open…, Save…, Save.
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,
Dr Jimmy Lam CAD for Fashion and Textiles
Vector A software technology that uses mathematical points based on “vectors" (information giving both magnitude and direction). Because the computer.
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.
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.
File Formats COM 366 Web Design & Layout. Native file format –Format native to software program –.psd > PhotoShop default Preserves layers –Use “Save.
File Formats About graphic file formats And image compression.
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.
Photoshop Software Rasterized, file formats, and printing choices.
SOFTWARE TYPES Word processing Page layout Paint Draw.
Common file formats  Lesson Objective: Understanding common file formats and their differences.  Learning Outcome:  Describe the type of files which.
Digital File Formats ACCT-IGD-10: Students will generate and manipulate various graphic imaging processes. ACCT-IGD-15: Students will identify and produce.
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.
10 | Graphics COM 366 Web Design & Production. Native file format –Format native to software program –psd > PhotoShop default Preserves layers –Use “Save.
File Formats and Vector Graphics. File Types Images and data are stored in files. Each software application uses different native file types and file.
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.
Chapter 3 Image Files © 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,
 Scanned or digitally captured image  Image created on computer using graphics software.
Color and Images. Color The natural colors we see and the colors we see on computer monitors are different. CMYK -natural RGB -monitor.
CSC Computing with Images1 File formats for images on the web CSC 1040.
Raster Graphics 2.01 Investigate graphic image design.
File Types. Terms Multimedia- the integration of text, sound, video and/or animation into a document Letters, brochures, newsletters, web pages or presentations.
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.
GDP-1 Understanding File Formats. Native format Is it possible to open a.wmv or a.mov file in Illustrator and edit the file? Why or why not? Can you open.
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.
Part 1 File Formats Definition: A file format is a way to write the code of information for storage of an electronic file on a computer. Different software.
13 June – Session : Graphics Different types of Graphics for the web Features of image editing software Good practice for image editing.
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.
ITEC2110, Digital Media Chapter 2 Fundamentals of Digital Imaging 1 GGC -- ITEC Digital Media.
2.01 Understand Digital Raster Graphics
File Formats Different applications (programs) store data in different formats. Applications support some file formats and not others. Open…, Save…, Save.
2.01 Understand Digital Raster Graphics
Understanding Web 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,
Web Graphics By Chris Harding.
2.01 Understand Digital Raster Graphics
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.
A computer display is made up of small squares, called pixels.
Image File Size and File Compression
Digital Images.
Graphics Basic Concepts.
2.01 Understand Digital Raster Graphics
2.01 Understand Digital Raster Graphics
"Digital Media Primer" Yue-Ling Wong, Copyright (c)2013 by Pearson Education, Inc. All rights reserved.
2.01 Investigate graphic image design.
Presentation transcript:

Image Compression CSC 1040

CSC Computing with Images2 How do we use fewer bytes to encode the same or similar information? Reduce redundancy Take advantage of human visual system – don’t bother differentiating things that are unnoticeable Make compromises!

CSC Computing with Images3 Human Vision Human eye tends to “blend” nearby colors Visual acuity varies markedly across features –Discontinuities easily seen, absolutes less crucial Color perception is relative

CSC Computing with Images4 Do these colors look the same as...

CSC Computing with Images5... as these?

CSC Computing with Images6 Not quite

Compression: Reducing Redundancy Run-length encoding – Group areas of similar pixels together and encode their color only once – Reduces size as if image had fewer pixels Palette selection – Encode only the colors actually used in the picture (may be much fewer than total number of possible colors) – Reduces size by using fewer bits per pixel CSC Computing with Images7

Opportunity: Large regions of a single color are common Approach: Record # of consecutive pixels for each color An example of lossless encoding Run length encoding

CSC Computing with Images Opportunity: Large regions of a single color are common Approach: Record # of consecutive pixels for each color An example of lossless encoding Uncompressed Run length encoding

CSC Computing with Images Opportunity: Large regions of a single color are common Approach: Record # of consecutive pixels for each color An example of lossless encoding Uncompressed Run Length Encoding Row 1, 16:0,13:1;16:0;25:1 Run length encoding

CSC Computing with Images11 “Lossy” compression types: JPEG Genuine Fractals Mr. SID OriginalCompressed 9:1 “averaging”

CSC Computing with Images12 JPEG Joint Photographic Experts Group Opportunity: Eye sees sharp lines better than subtle shading Approach: Run length encoding + lossy compression Retain detail only for the most important parts Allows user-selectable fidelity Results: Typical compression 20:1

CSC Computing with Images13 JPEG Joint Photographic Experts Group Preferred format for scanned photographic images for use over the internet or Web. Not meant for printing. Not good for images with a lot of solid color, vector drawings, type, or line art or images with “Web-safe” colors. JPEG compression is lossy! Save and archive the original before converting to JPEG.

CSC Computing with Images14 In Photoshop, when you Save as… a JPEG file, you can choose the level of compression and, therefore, the size and quality of the file.

Compression: Reducing Redundancy Run-length encoding – Group areas of similar pixels together and encode their color only once – Reduces size as if image had fewer pixels Palette selection – Encode only the colors actually used in the picture (may be much fewer than total number of possible colors) – Reduces size by using fewer bits per pixel CSC Computing with Images15 JPG

Compression: Reducing Redundancy Run-length encoding – Group areas of similar pixels together and encode their color only once – Reduces size as if image had fewer pixels Palette selection – Encode only the colors actually used in the picture (may be much fewer than total number of possible colors) – Reduces size by using fewer bits per pixel CSC Computing with Images16 JPG GIF

CSC Computing with Images17 Palette selection Opportunity: –No picture uses all 16 million colors –Human eye does not see small differences Approach: –Select a palette of 256 colors –Indicate which palette entry to use for each pixel –Look up each color in the palette

CSC Computing with Images18 Type of image Bits/pixel320 x 240 image 640 x 480 image 1024 x 768 image Bitmap 1320x240=76,800 pixels =9,600 bytes =9.375 KB 307,200 bits =38,400 =37.5 KB 786,432 bits =98,304 bytes =96 KB Grayscale8 =76,800 bytes =75 KB = 307,200 bytes =300 KB 786,432 bytes 768 KB RGB color 24 (3 bytes) 225 KB900 KB2,304 KB =2.25 MB 32 bit color (4 bytes) 32 (4 bytes) 300 KB1200 KB3,072 KB = 3 MB 256 color GIF 8 75 KB300 KB768 KB 16 color GIF KB 150 KB384 KB Size of images Same as grayscale Half of grayscale

CSC Computing with Images19 GIF Graphics Interchange Format Industry standard graphic format for on-screen viewing through the Internet and Web. Not meant to be used for printing. The best format for all images except scanned photographic images (use JPEG for these). GIF supports lossless LZW compression.

CSC Computing with Images20 Photoshop Save for Web details for this option Tools settings

CSC Computing with Images21 JPEG cautions: Images with hard edges, high contrasts, angular areas, and text suffer from JPEG compression. Scanned “natural” photographs do not lose much, especially at High or Maximum quality. Only save finished images as JPEGs, every time you open and save again, even if you don’t edit, you lose quality. Always keep the original non-JPEG version (the native.psd format). So why use JPEG? It is the best format for photographic images on the Web. Its compression ability is very great.

CSC Computing with Images22 GIF cautions: Restricted number of colors – not suitable for photographs Very good compression for line drawings (uniform color areas) Only save finished images as GIFs Always keep the original non-GIF version (the native.psd format). So why use GIF? It is a good format for images that have few colors and is widely available Can do lossless compression Its compression ability is great, especially for images with few colors Can also be used for animation

CSC Computing with Images23 Adobe Photoshop Photoshop can save files in many file formats:.psd — Photoshop Document (“native” format).pdf — Photoshop Portable Document Format.eps — Photoshop Encapsulated PostScript.tiff — Tagged Image File Format.gif — Compuserve Graphic Interchange Format.jpg — JPEG, Joint Photographic Experts Group.bmp — Windows Bitmap.png — Portable Network Graphic etc., etc. A summary of Graphics file formats and uses can be found in: printingweb

CSC Computing with Images24 EPS Encapsulated PostScript Preferred file format for importing into page layout programs such as QuarkXPress, PageMaker, InDesign, XPress, etc. for subsequent printing. An object-oriented format. Will only print to a postscript printer. Uses lossy JPEG compression. Only save your file as EPS if you need to import it into a page layout program.

CSC Computing with Images25 TIFF Tagged Image File Format Widely used cross platform file format also designed for printing. A bitmap image format. TIFF supports lossless LZW compression which also makes it a good archive format for Photoshop documents.

CSC Computing with Images26 PDF Portable Document Format Developed to transfer and read documents without having to print them—the “paperless office.” Cross platform format that can be read with the free download Adobe Acrobat Reader. Can represent both vector and bitmap graphics. Can also contain electronic document search and navigation features as well as hypertext links. Can be created from almost any application, but the user cannot edit or modify the file except with Adobe Acrobat (or other software). Document formatting, fonts, colors, etc. are maintained and appear identical across platforms. Excellent in the “prepress” process — can be sent to the printer, but can also be placed in other documents.

CSC Computing with Images27 Some of the slides in this presentation were adapted from: /PowerPoint presentations/Lec 7-File formats.ppt and