file formats com 366 web design & layout. native file format –format native to software...

19
File Formats COM 366 Web Design & Layout

Upload: hope-cox

Post on 16-Jan-2016

217 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: File Formats COM 366 Web Design & Layout. Native file format –Format native to software program –.psd > PhotoShop default Preserves layers –Use “Save

File Formats

COM 366Web Design & Layout

Page 2: File Formats COM 366 Web Design & Layout. Native file format –Format native to software program –.psd > PhotoShop default Preserves layers –Use “Save

• Native file format– Format native to software program– .psd > PhotoShop default

• Preserves layers

– Use “Save for Web” in PhotoShop to export as jpeg file

Page 3: File Formats COM 366 Web Design & Layout. Native file format –Format native to software program –.psd > PhotoShop default Preserves layers –Use “Save

Graphic files

• Raster or bitmap graphics– Use pixels– PhotoShop

Page 4: File Formats COM 366 Web Design & Layout. Native file format –Format native to software program –.psd > PhotoShop default Preserves layers –Use “Save

• Vector graphics– Use mathematical formulas– Combine lines, points, curves

• Fill with colors

– Flash

Page 5: File Formats COM 366 Web Design & Layout. Native file format –Format native to software program –.psd > PhotoShop default Preserves layers –Use “Save

GIF format (.gif)

• Graphic interchange format• GIF images use indexed color

– Maximum of 256 colors

• Compressed– Reduce file size– “lossless” means image doesn’t lose any

quality by being compressed

Page 6: File Formats COM 366 Web Design & Layout. Native file format –Format native to software program –.psd > PhotoShop default Preserves layers –Use “Save

• Biggest advantage is that one color can be transparent– Allow background on Web page to show thru

• Can be interlaced– Download in layers with each layer adding

more detail

Page 7: File Formats COM 366 Web Design & Layout. Native file format –Format native to software program –.psd > PhotoShop default Preserves layers –Use “Save

Interlaced file displaying every 8th row; this is how the file first loads.

Interlaced file displaying all rows; this how the file appears after the entire graphic has loaded.

Page 8: File Formats COM 366 Web Design & Layout. Native file format –Format native to software program –.psd > PhotoShop default Preserves layers –Use “Save

• Best used for text or illustrations or cartoons

Page 9: File Formats COM 366 Web Design & Layout. Native file format –Format native to software program –.psd > PhotoShop default Preserves layers –Use “Save

JPEG file (.jpeg)

• or .jpg• Joint Photographic Experts Group• Best used for photos

• Uses “lossy” compression scheme– Some detail is lost – Reduces file size

Page 10: File Formats COM 366 Web Design & Layout. Native file format –Format native to software program –.psd > PhotoShop default Preserves layers –Use “Save

• Progressive JPEG– Similar to interlacing for GIF file– Downloads in waves or layers

Page 11: File Formats COM 366 Web Design & Layout. Native file format –Format native to software program –.psd > PhotoShop default Preserves layers –Use “Save

• Big advantage of jpeg is that it can contain millions of colors

• Can choose from various compression levels– Low = more degradation– Higher the quality level, greater file size

Page 12: File Formats COM 366 Web Design & Layout. Native file format –Format native to software program –.psd > PhotoShop default Preserves layers –Use “Save

Quality = 10, 4.7 kB

Quality = 100, 83.2 kB

Quality = 50, 15.1 kB

Page 13: File Formats COM 366 Web Design & Layout. Native file format –Format native to software program –.psd > PhotoShop default Preserves layers –Use “Save

• Best used for photos

Page 14: File Formats COM 366 Web Design & Layout. Native file format –Format native to software program –.psd > PhotoShop default Preserves layers –Use “Save

File sizes

• File sizes measured in bytes• Bit smallest unit of measurement on

computer– On / off, 1 or 0

• 8 bits = 1 byte• One byte equals about one letter “A”

Page 15: File Formats COM 366 Web Design & Layout. Native file format –Format native to software program –.psd > PhotoShop default Preserves layers –Use “Save

• A 1,000 bytes = kilobyte (kB)• A million bytes = megabyte (MB)• A trillion bytes = gigabyte (GB)

• Lowercase b would mean bits– Mb

Page 16: File Formats COM 366 Web Design & Layout. Native file format –Format native to software program –.psd > PhotoShop default Preserves layers –Use “Save

Other formats

• PNG (.png)– Portable network graphics– Developed as replacement for GIF– Not patented– Lossless compression– Transparent background

– Can have more colors than gif (PNG-24)

Page 17: File Formats COM 366 Web Design & Layout. Native file format –Format native to software program –.psd > PhotoShop default Preserves layers –Use “Save

• PNG-8 uses 8-bit color– 256 colors– Comparable to gif

• PNG-24– Supports millions of colors– Comparable to jpeg

• Larger file size than jpeg• But uses lossless compression

Page 18: File Formats COM 366 Web Design & Layout. Native file format –Format native to software program –.psd > PhotoShop default Preserves layers –Use “Save

What a cat image looks like saved as a PNG-24 and placed against a patterned background on the HTML page:

Page 19: File Formats COM 366 Web Design & Layout. Native file format –Format native to software program –.psd > PhotoShop default Preserves layers –Use “Save

.html

• Hypertext markup language• All web pages have to be in this format• Only format Web browsers (Safari, Firefox) can

read