* Lecture 22 Images * Course logo spider web photograph from Morguefile openstock photograph by Gabor Karpati, Hungary.

Slides:



Advertisements
Similar presentations
L.Ghadah R. Hadba CT1514-L1.  Computer Graphics :refers to processing of creating a new image from Geometry, Lighting parameters, Materials and Textures.Using.
Advertisements

Image Data Representations and Standards
Image Processing, Illustration (Drawing), Paint Programs, and Scanning Dr. Warren C. Weber Cal Poly Pomona.
Graphics in the web Digital Media: Communication and Design
Image Representation CS105. Data Representation Text representation – ASCII character set – Unicode – Data compression Images!
Introduction to Computer Graphics
Data starts with width and height of image Then an array of pixel values (colors) The number of elements in this array is width times height Colors can.
Internet as a resource tutorial – part steps, 3 different actions 1. Search content 2. Use Text 3. Use Images.
WEB GRAPHICS. The Pixel Computer displays are comprised of rows and columns of pixels. Pixels are indivisible. Some common screen resolutions are:, 600.
GRAPHICS/IMAGES INFSCI Source: Learning Web Design by Jennifer Niederst RobbinsJennifer Niederst Robbins Creating Images:  Scanning  Be aware.
1 Graphics and the Web INFO 654 – Spring Sources and Credits for this Material Used examples from Son of Web Pages That Suck (2002) by Vincent.
File Formats COM 366 Web Design & Layout. Native file format –Format native to software program –.psd > PhotoShop default Preserves layers –Use “Save.
THE COLORS OF LIGHT RED, GREEN and BLUE
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.
Computer Images Can store color info about each pixel, but makes file BIG Compression for Web 15.
Image Representation. Digital Cameras Scanned Film & Photographs Digitized TV Signals Computer Graphics Radar & Sonar Medical Imaging Devices (X-Ray,
Web Design Basics.
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.
Types of Graphics  Vector Individual scalable objects defined by mathematical equations  Bitmap Pixels (tiny, single-colored square) in a grid Most.
Multimedia Basics (1) Hongli Luo CEIT, IPFW. Topics r Image data type r Color Model : m RGB, CMY, CMYK, YUV, YIQ, YCbCr r Analog Video – NTSC, PAL r Digital.
Graphics & Images What File Format Do I Use?. Graphics & Images …..are visual images presented on some form of media (drawings, print, web, digital video)
Raster Graphics 2.01 Investigate graphic image design.
Exploring Web Design Chapter 1. Objectives Develop a new perspective of the WWW Learn what makes a website good or bad Discover how to apply objective.
Web Page Design Mrs. Ricke. Graphics Interchange Format 256 colors only Good for icons, clipart, logos Not good for high quality pictures.
Image File Formats By Dr. Rajeev Srivastava 1. Image File Formats Header and Image data. A typical image file format contains two fields namely Dr. Rajeev.
HTTP transaction with Graphics HTML file + two graphics files.
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.
Module 4- Build a Game Look at Me Mod 4 Lesson 3 Graphics.
Efficient Game Graphics From Flash MX 2004 Game Design Demystified.
2.01 Understand Digital Raster Graphics
2.01 Understand Digital Raster Graphics
Sampling, Quantization, Color Models & Indexed Color
Web Graphics & Optimization
Binary Representation in Audio and Images
Web Graphics 101 Web Image File Formats Image Optimization
Computer Science Higher
2.01 Understand Digital Raster Graphics
Introduction to raster graphics
Chapter 3 Graphics and Image Data Representations
Computer Graphics Different Images File.
Photo Editing for PowerPoint & the Web
Web Development A Visual-Spatial Approach
JPG vs GIF vs PNG What is the difference?
Raster Images CPSC 1030.
Choosing the right image format
A computer display is made up of small squares, called pixels.
Look at Me Mod 4 Lesson 3 Graphics Module 4- Build a Game.
1.01 Investigate graphic types and file formats.
* Lecture 26 Manifest Asynchrony
Introduction to Computer Graphics
* Lecture 12 Mapping, Map Reduction Summing integers,
Tables from Arrays of Objects Exploding Strings
Introduction to AJAX and the migration toward applications
2.01 Understand Digital Raster Graphics
MySQL Tables and Relations 101
Photoshop: Creating and Preparing Images for the Web
Creating Images for the Web
Graphic File Format Skill Area
COMS 161 Introduction to Computing
2.01 Understand Digital Raster Graphics
COMS 161 Introduction to Computing
Hyperlinks, Images and Tables
Color and Images.
Multimedia System Image
Loops and Conditionals Generating , Reading files.
Lecture 4 - Introduction to Computer Graphics
Presentation transcript:

* Lecture 22 Images * Course logo spider web photograph from Morguefile openstock photograph by Gabor Karpati, Hungary.

CSU CT 310 Web Development ©Ross Beveridge & Jamie Ruiz Back to Basics Pixels A Basic Concept is that of an Image Pyramid. Here we see 1x1, 2x2, 4x4, 8x8, 16x16, 32x32, 64x64 and 128x128 versions of the same image. 11/21/2018 CSU CT 310 Web Development ©Ross Beveridge & Jamie Ruiz

About Low Resolution a total aside comment 11/21/2018 CSU CT 310 Web Development ©Ross Beveridge & Jamie Ruiz

CSU CT 310 Web Development ©Ross Beveridge & Jamie Ruiz Colors (RGB) Visual range red (700 nm) … to violet (400 nm) Ever wonder why? Red, Green & Blue Physics? Not really. Neural Biology? Much Closer. 400 700 energy wavelength Morguefile image by Jane M. Sawyer 11/21/2018 CSU CT 310 Web Development ©Ross Beveridge & Jamie Ruiz

Tristimulus Theory of Color The tristimulus theory says cones in the human eye detect 3 primitive colors: red, green, and blue. Energy near red excites response. Same for green and blue. All the rest of the “detail” goes away. RGB Displays therefore cheat. Might be why dogs don’t like TV …. 11/21/2018 CSU CT 310 Web Development ©Ross Beveridge & Jamie Ruiz

CSU CT 310 Web Development ©Ross Beveridge & Jamie Ruiz Why Don’t Dogs Watch TV? 11/21/2018 CSU CT 310 Web Development ©Ross Beveridge & Jamie Ruiz

CSU CT 310 Web Development ©Ross Beveridge & Jamie Ruiz The RGB Cube 3 Dimensions Move along: Red Green Blue Direct tie to tristimulus theory. https://en.wikipedia.org/wiki/RGB_color_model#/media/File:RGB_color_solid_cube.png 11/21/2018 CSU CT 310 Web Development ©Ross Beveridge & Jamie Ruiz

Photo Editing Tools - GIMP GIMP has the great advantage of being on all CS Department Unix Workstations. Just type gimp 11/21/2018 CSU CT 310 Web Development ©Ross Beveridge & Jamie Ruiz

Editing Tools - Photoshop Photoshop has the great advantage, for me, that I’ve spent nearly a decade learning it (and I still only know a small small fraction of what it can do). I will use Photoshop in lectures to illustrate many concepts related to image manipulation. 11/21/2018 CSU CT 310 Web Development ©Ross Beveridge & Jamie Ruiz

Back to specifying colors The Photoshop color picker gives one nice view of how different means of specifying colors relate to each other. Hex Dec. Binary R 36 54 00110110 G f1 241 11110001 B 11/21/2018 CSU CT 310 Web Development ©Ross Beveridge & Jamie Ruiz

CSU CT 310 Web Development ©Ross Beveridge & Jamie Ruiz GIF Image Format Graphics Interchange Format Limited to 256 colors Designed for flat graphics Not for photographs! Uses color map, more in a minute. Superseded by 8 bit PNG But it certainly is universal … 11/21/2018 CSU CT 310 Web Development ©Ross Beveridge & Jamie Ruiz

Examples for this Lecture 11/21/2018 CSU CT 310 Web Development ©Ross Beveridge & Jamie Ruiz

CSU CT 310 Web Development ©Ross Beveridge & Jamie Ruiz Saving as Gif Color Table. Entry 1 000000 Entry 2 006600 Entry 3 Transparent. Size 56,300 bytes To 771 bytes. 11/21/2018 CSU CT 310 Web Development ©Ross Beveridge & Jamie Ruiz

First Example Transparency Anti-Aliasing is usually a good thing! (But beware). 11/21/2018 CSU CT 310 Web Development ©Ross Beveridge & Jamie Ruiz

CSU CT 310 Web Development ©Ross Beveridge & Jamie Ruiz Gif and Compression Part 1: Color Table Part 2: Run Length Encoding Lempel-Ziv-Welch Consider simple type Note duplicates Replace Lossless! 1 2 111111122211112221111111 (7,1),(3,2),(4,1),(3,2),(7,1) 7132413271 11/21/2018 CSU CT 310 Web Development ©Ross Beveridge & Jamie Ruiz

CSU CT 310 Web Development ©Ross Beveridge & Jamie Ruiz GIF Animations GIF allows multiple frames in one file. Browsers sequence through frames. Result is a simple form of animation. Leads us to Deidre LaCarte’s famous* … Now http://www.hamsterdance.org/hamsterdance/ Modern tastes in web site design dictate sparing use of animation. That said, used sparingly, it is a powerful accent. Thanks to Wikipedia for providing an excellent history of hamster dance. 11/21/2018 CSU CT 310 Web Development ©Ross Beveridge & Jamie Ruiz

CSU CT 310 Web Development ©Ross Beveridge & Jamie Ruiz JPEG Image Format Joint Photographic Export Group. Full 24 bit color. But, Some information is lost. This is why one specifies quality level. Essence - Discrete Cosine Transform Wikipedia (again), very nice synopsis. 11/21/2018 CSU CT 310 Web Development ©Ross Beveridge & Jamie Ruiz

Quality Level Examples 116KB 136KB 324KB Morguefile image by Nanette Bartet. 11/21/2018 CSU CT 310 Web Development ©Ross Beveridge & Jamie Ruiz

JPEG and Plain Text, Note a Good Combination. Notice artifacts in the white background! 11/21/2018 CSU CT 310 Web Development ©Ross Beveridge & Jamie Ruiz

CSU CT 310 Web Development ©Ross Beveridge & Jamie Ruiz PNG Image Format Portable Network Graphics Comes in two flavors 8 bit color mapped, replaces GIF. 24 bit full color, replaces JPEG. Includes an alpha channel Practical transparency. 11/21/2018 CSU CT 310 Web Development ©Ross Beveridge & Jamie Ruiz

CSU CT 310 Web Development ©Ross Beveridge & Jamie Ruiz Alpha Channel Review. A good way to use the last byte :-) Consider a 32 bit word … Alpha controls blending Alpha = 0 (000) - transparent. Alpha = 1 (255) - completely covers. Alpha = 0.5 (128) - 50/50 blend. Alpha Red Green Blue 1 1 1 1 80 36 F1 36 11/21/2018 CSU CT 310 Web Development ©Ross Beveridge & Jamie Ruiz

Modern Operating Systems Support Transparency. 11/21/2018 CSU CT 310 Web Development ©Ross Beveridge & Jamie Ruiz

Anti Aliasing Revisited 11/21/2018 CSU CT 310 Web Development ©Ross Beveridge & Jamie Ruiz

Semitransparent - image The top image uses the alpha channel to specify opacity. Photoshop Opacity is 75% 11/21/2018 CSU CT 310 Web Development ©Ross Beveridge & Jamie Ruiz

Semitransparent Images We will construct to images in Photoshop and make one 25 transparent. 11/21/2018 CSU CT 310 Web Development ©Ross Beveridge & Jamie Ruiz