Académique Documents
Professionnel Documents
Culture Documents
should I use?
JPEG!
TIFF!
EPS!
SVG!
PNG!
GIF!
BMP!
AI!
PDF!
PSD!
GIF!
SVG!
PNG24!
!
editing
photos
JPEG!
PSD!
Digital Images
Digital images are very often Bitmaps
Bitmaps are just one way of representing
digital images
000010
000010
000010
000010
000010
000010
100010
011100
000000
000000
Vectors
Made of mathematical lines, curves and
shapes (such as splines or bziers)
Can be scaled indefinitely without
aliasing becoming evident
Must have a fill or stroke, or both
Not rasterized until displayed
May be slower to draw than bitmaps
File formats: .eps, .ai, .svg
Vectors
Vectors
Vectors : SVG
Excellent support across HTML5 devices
Ideal for scalable graphics on different screens
Explorer 8 and lower have poor support
Text-based easily generated on the server (PHP)
Can contain references to bitmaps
Can include CSS and media queries
Vectors : SVG
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://
www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg viewBox="0 0 200 200" version="1.1">
<circle cx="100" cy="100" r="80"
stroke-width = "10"
fill = "orange"
stroke = "navy"/>
</svg>
produces this:
Vectors : SVG
It's TINY
and SVGZ
is even smaller
Indexed Color
Indexed Color
Uses a small set of colors (from 2 to 256)
Color Look-Up Table (CLUT) or Palette
each color in the palette has an index
Each pixel refers to a specific index
Small, efficient files
Some devices ONLY support indexed color!
Popular file formats: png-8, gif
21 = 2
2 bit = 4 colors
22 = 4
3 bit = 8 colors
23 = 8
4 bit = 16 colors
24 = 16
5 bit = 32 colors
25 = 32
28 = 256
RGB + Alpha
True Color with transparency Millions+
Each pixel can have:
8 bits of Red, 8 bits of Green, 8 bits of Blue
8 bits of Alpha (256 levels of transparency)
File format: png-24 (with transparency)
Some issues with IE6 and other older browsers
Hexadecimal Values
Decimal:
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Hexadecimal:
0 1 2 3 4 5 6 7 8 9 A B C D E F 10
Or:
Letters are bigger than numbers
F is bigger than A
The bigger, the brighter
16
Hexadecimal Values
(CSS examples)
p {color:#ff0088}
h1 {color:#ccc}
h2 {color:#f}
Hexadecimal Values
Split the color code into three parts
Each part represents the intensity of a primary color
(red, green, blue)
If all three primaries have the same value, the color
is a shade of grey (could also be black or white)
Low values are darker, high values are brighter
FFFFFF
Light Grey
CCCCCC
Black
000000
Dark Grey
333333
Red
FF0000
Yellow
FFFF00
Green
00FF00
Cyan
00FFFF
Blue
0000FF
Magenta
FF00FF
24 bit original
3 bit (8 colors)
with dithering
3 bit (8 colors)
no dithering (posterized)
Anti-Aliasing
Simple transparency (gif, png-8)
Pixels are mixed with background
when the image is created
Simple
transparency with
pure white matte
showing
aliased fringe
over the red pixels
Anti-Aliasing
Edge pixels are mixed with a background colour
(matte)
Using the wrong matte color results in an ugly,
aliased fringe or halo
Indexed Color
with simple transparency
Green matte
Anti-Aliasing
with full transparency (png-24)
Pixels are mixed with background
when the image is displayed
Each pixel has up to 256 levels of
transparency
Takes up more space on disk,
longer time to download (etc.)
Requires more processor power,
and may be slower
RGB + Alpha
File size is
greater than
with simple
transparency
Resolution on Screen
Higher screen resolutions offer finer detail, but use
more screen memory (VRAM), and may therefore
require lower bit depths.
Image resolution is given as height and width in
pixels.
Physical size (in inches or centimeters) is not really
meaningful for screen-based images.
The on-screen size may be different from the actual
pixel size (may be scaled up or down).
Favicons
Other Formats
PSD your primary editable format! (Photoshop)
TIFF a general purpose format with simple lossless
compression.
Raw a digital negative produced by
professional digital cameras. Very high quality.
BMP Microsoft Windows native image format
.ICO Microsoft Windows native icon format
Other Formats
EPS Usually for vectors, but may contain bitmaps
AI Adobe Illustrator format (usually vectors)
PDF Very often contains images
and vector content
(e.g. styled text, diagrams)
Other Formats
Device-specific formats (e.g. for handheld devices)
Software-specific formats (e.g. textures, icons)
Exotic forms of PNG, EPS and TIFF
Obsolete formats for nostalgia, legacy systems
Your development teams own proprietary hacks
A thousand others