1
1
Aaron Stevens
23 February 2011
Some material form Wikimedia Commons Special thanks to John Magee and his dog
CS101 Lecture 15: Image Compression
2
What Youll Learn Today Review: how big are image files? How can - - PDF document
CS101 Lecture 15: Image Compression Aaron Stevens 23 February 2011 Some material form Wikimedia Commons Special thanks to John Magee and his dog 1 What Youll Learn Today Review: how big are image files? How can we make image
1
23 February 2011
Some material form Wikimedia Commons Special thanks to John Magee and his dog
2
3
– Bitmap (BMP), GIF, JPEG, and PNG, for example
– Typical size might be 1024 by 768 pixels (~ 800,000) – At 3 bytes per pixel, about 2,400,000 bytes for one picture. – A 10Mpixel picture would be 30,000,000 bytes per picture.
4
– A 10Mpixel picture would be 30,000,000 bytes – This is 240,000,000 bits. – Typical home cable modem downloads at 5 Mbits per second (5,000,000 bits per second).
5
This image was a homework assignment by a CS108 student, Spring 2008.
6
Instructions written in Python by CS108 student (Spring 2010). File size: 29743 bytes.
7
8
9
10
11
– 256 colors: 8 bits per pixel – 16 colors: 4 bits per pixel
12
13
14
15
16
19
20
21
22
Original image was 2048 * 1536 pixels All others are 300 * 400 pixels
23
24
25
26