SlideShare une entreprise Scribd logo
1  sur  12
Preparing Images
                 for the Web


Advanced CSS                      Stephen Ireland
Image Optimization

    Why do I need to know about this?

    Because it can affect;

• Download speeds (don’t forget dial-up or mobile users)
• Quality (you want your images to be high quality)
• Colour (different screens, different browsers)
• Accessibility (colour blindness considerations)




Advanced CSS                                          Stephen Ireland
Considerations

    What options / tools do we have?
• Image size (physical dimensions)
• File type (GIF, JPEG or PNG - which is best?)
• Compression (size versus quality issues)
• Save for Web (option in Adobe Photoshop 6.5+)




Advanced CSS                                      Stephen Ireland
Image Size
• Web images should be measured in pixels (px)
• Adjust Photoshop: Preferences > Units & Rulers...
• Resolution should be 72dpi (for screen use)
• Crop images to minimum physical size;




Advanced CSS                                          Stephen Ireland
File Types

    The big three:
• GIF
• JPEG
• PNG

    Each type has its uses. We need to know which is best
    depending on the image and its use.




Advanced CSS                                                Stephen Ireland
GIF       (.gif)

• Best for graphic artwork
• Images made up of blocks of colour
• Text, line art, patterns etc (not gradients or photos)
• Can use lossless compression
• Can have transparent background, although not perfect




Advanced CSS                                               Stephen Ireland
JPEG           (.jpg)

• Best for images with continuous tones
• Images with subtle changes in colour
• Photographic images and gradients are ideal
• Use of ‘lossy’ compression to reduce file size
• Watch out for ‘artefacts’ when compression is high




Advanced CSS                                           Stephen Ireland
PNG            (.png)

• Good for images requiring complete transparency
• Not well supported, browser compatibility iffy
• IE can be ‘hacked’ to support transparency in PNGs
• You may find a use for PNG files but its probably worth
    finding a workaround to avoid the browser inconsistencies




Advanced CSS                                           Stephen Ireland
Optimization & Compression
• Reduce the file size,
    reduce the download time

• Use ‘Save for Web’ in
    Photoshop

• Learn the keyboard
    shortcut!

• Each option is a
    compromise between
    reproduction quality and
    download time

Advanced CSS                   Stephen Ireland
Photoshop: Save for Web
• Choose from the presets
• Compare quality against file size
• Override preset if necessary




Advanced CSS                          Stephen Ireland
Save for Web: Typical Presets

    JPEG images
• Try not to go below 60% quality - artefacts obvious,
    reduce physical size of image instead
• Don’t save image with ICC profile - this will cause colour
    match problems in Safari on the Mac

    GIF images
• Try 64 or 128bit Dithered - This should work fine
• Using transparency? - test on background and edit pixel
    edges manually if necessary!

Advanced CSS                                          Stephen Ireland
Final Notes
• Remember; compression is a compromise between file size
    and download time. Not everyone has fast internet access.

• Cut out wasted pixels from your images, this will reduce
    your file size, and therefore download time.

• Consider the colours used in your images carefully, check
    they won’t cause problems for those with colour blindness.

• http://www.websiteoptimization.com/ offers free speed
    tests. Part of these tests will tell you how long your images
    will take to download.


Advanced CSS                                              Stephen Ireland

Contenu connexe

Tendances

Wordpress Page Load Speed - Kenneth sytian
Wordpress Page Load Speed - Kenneth sytianWordpress Page Load Speed - Kenneth sytian
Wordpress Page Load Speed - Kenneth sytianGrant Merriel
 
Sustainable UX For Everyone
Sustainable UX For EveryoneSustainable UX For Everyone
Sustainable UX For EveryoneMobileUXLondon
 
Selecting a WordPress theme
Selecting a WordPress themeSelecting a WordPress theme
Selecting a WordPress themeWarren Denley
 
Word Press Intro for Beginners
Word Press Intro for BeginnersWord Press Intro for Beginners
Word Press Intro for BeginnersSueEllisSaller
 
Ican cms training (editing images)
Ican cms training (editing images) Ican cms training (editing images)
Ican cms training (editing images) hassandabbagh
 
Deliver Perfect Images At Any Size
Deliver Perfect Images At Any SizeDeliver Perfect Images At Any Size
Deliver Perfect Images At Any SizeFITC
 
Creative Video Wall Processing
Creative Video Wall ProcessingCreative Video Wall Processing
Creative Video Wall ProcessingrAVe [PUBS]
 
Reputation management
Reputation managementReputation management
Reputation managementluckyboost
 
Understanding Content Management Services
Understanding Content Management ServicesUnderstanding Content Management Services
Understanding Content Management Services360ideas
 
How To Work Faster & More Profitably With Client Site Starter Templates
How To Work Faster & More Profitably With Client Site Starter TemplatesHow To Work Faster & More Profitably With Client Site Starter Templates
How To Work Faster & More Profitably With Client Site Starter TemplatesWP Engine
 
Image Optimization Techniques & Tips
Image Optimization Techniques & TipsImage Optimization Techniques & Tips
Image Optimization Techniques & TipsSvasamsoft
 
Building an Ad Server to Optimize House (Internal) Ads
Building an Ad Server to Optimize House (Internal) AdsBuilding an Ad Server to Optimize House (Internal) Ads
Building an Ad Server to Optimize House (Internal) AdsJordan Skole
 
Spectrum 16 pmc 16 - preparing legacy projects for responsive design
Spectrum 16   pmc 16 - preparing legacy projects for responsive designSpectrum 16   pmc 16 - preparing legacy projects for responsive design
Spectrum 16 pmc 16 - preparing legacy projects for responsive designNeil Perlin
 
The high resolution web
The high resolution webThe high resolution web
The high resolution webPatric Lanhed
 
Web designing chennai
Web designing chennaiWeb designing chennai
Web designing chennaiacspvt14
 
How to use WordPress
How to use WordPressHow to use WordPress
How to use WordPressJonny Allbut
 
Web Site Hosting and Deployment
Web Site Hosting and DeploymentWeb Site Hosting and Deployment
Web Site Hosting and DeploymentSusan Sim
 

Tendances (20)

Wordpress Page Load Speed - Kenneth sytian
Wordpress Page Load Speed - Kenneth sytianWordpress Page Load Speed - Kenneth sytian
Wordpress Page Load Speed - Kenneth sytian
 
Sustainable UX For Everyone
Sustainable UX For EveryoneSustainable UX For Everyone
Sustainable UX For Everyone
 
Selecting a WordPress theme
Selecting a WordPress themeSelecting a WordPress theme
Selecting a WordPress theme
 
Word Press Intro for Beginners
Word Press Intro for BeginnersWord Press Intro for Beginners
Word Press Intro for Beginners
 
Ican cms training (editing images)
Ican cms training (editing images) Ican cms training (editing images)
Ican cms training (editing images)
 
Deliver Perfect Images At Any Size
Deliver Perfect Images At Any SizeDeliver Perfect Images At Any Size
Deliver Perfect Images At Any Size
 
Creative Video Wall Processing
Creative Video Wall ProcessingCreative Video Wall Processing
Creative Video Wall Processing
 
Reputation management
Reputation managementReputation management
Reputation management
 
Understanding Content Management Services
Understanding Content Management ServicesUnderstanding Content Management Services
Understanding Content Management Services
 
How To Work Faster & More Profitably With Client Site Starter Templates
How To Work Faster & More Profitably With Client Site Starter TemplatesHow To Work Faster & More Profitably With Client Site Starter Templates
How To Work Faster & More Profitably With Client Site Starter Templates
 
Image Optimization Techniques & Tips
Image Optimization Techniques & TipsImage Optimization Techniques & Tips
Image Optimization Techniques & Tips
 
Word press in 60 minutes
Word press in 60 minutesWord press in 60 minutes
Word press in 60 minutes
 
Building an Ad Server to Optimize House (Internal) Ads
Building an Ad Server to Optimize House (Internal) AdsBuilding an Ad Server to Optimize House (Internal) Ads
Building an Ad Server to Optimize House (Internal) Ads
 
Spectrum 16 pmc 16 - preparing legacy projects for responsive design
Spectrum 16   pmc 16 - preparing legacy projects for responsive designSpectrum 16   pmc 16 - preparing legacy projects for responsive design
Spectrum 16 pmc 16 - preparing legacy projects for responsive design
 
The high resolution web
The high resolution webThe high resolution web
The high resolution web
 
Basic web Deveopment
Basic web DeveopmentBasic web Deveopment
Basic web Deveopment
 
Web designing chennai
Web designing chennaiWeb designing chennai
Web designing chennai
 
How to use WordPress
How to use WordPressHow to use WordPress
How to use WordPress
 
Web design
Web designWeb design
Web design
 
Web Site Hosting and Deployment
Web Site Hosting and DeploymentWeb Site Hosting and Deployment
Web Site Hosting and Deployment
 

Similaire à Preparing Images for the Web: Image Optimization Tips

Image optimization and you
Image optimization and youImage optimization and you
Image optimization and youJohannes Siipola
 
A Picture Costs A Thousand Words
A Picture Costs A Thousand WordsA Picture Costs A Thousand Words
A Picture Costs A Thousand WordsGuy Podjarny
 
Putting Your Images on a Diet (SmashingConf, 2014)
Putting Your Images on a Diet (SmashingConf, 2014)Putting Your Images on a Diet (SmashingConf, 2014)
Putting Your Images on a Diet (SmashingConf, 2014)Guy Podjarny
 
Web graphics vector & roaster101
Web graphics  vector & roaster101Web graphics  vector & roaster101
Web graphics vector & roaster101nageswaran987
 
We should optimize images
We should optimize imagesWe should optimize images
We should optimize imagesShogo Sensui
 
Velocity Conference 2013: A Picture Costs A Thousand Words
Velocity Conference 2013: A Picture Costs A Thousand WordsVelocity Conference 2013: A Picture Costs A Thousand Words
Velocity Conference 2013: A Picture Costs A Thousand WordsAkamai Technologies
 
Castro Chapter 5
Castro Chapter 5Castro Chapter 5
Castro Chapter 5Jeff Byrnes
 
File types pro forma
File types pro formaFile types pro forma
File types pro formaCam Stannard
 
Chapter 23: Web Images
Chapter 23: Web ImagesChapter 23: Web Images
Chapter 23: Web ImagesSteve Guinan
 
High Performance Images in WordPress
High Performance Images in WordPressHigh Performance Images in WordPress
High Performance Images in WordPresskeithdevon
 
Image optimization q_auto - f_auto
Image optimization q_auto - f_autoImage optimization q_auto - f_auto
Image optimization q_auto - f_autoCan Ozdoruk
 
Digital Graphics Pro Forma
Digital Graphics Pro FormaDigital Graphics Pro Forma
Digital Graphics Pro FormaAlex Walker
 
File types pro forma
File types pro forma File types pro forma
File types pro forma Alex Walker
 
File types pro forma
File types pro formaFile types pro forma
File types pro formaCheekiBreeki
 
Trouble with distribution
Trouble with distributionTrouble with distribution
Trouble with distributionJ On The Beach
 

Similaire à Preparing Images for the Web: Image Optimization Tips (20)

Image optimization and you
Image optimization and youImage optimization and you
Image optimization and you
 
Image Optimization for The Web
Image Optimization for The WebImage Optimization for The Web
Image Optimization for The Web
 
A Picture Costs A Thousand Words
A Picture Costs A Thousand WordsA Picture Costs A Thousand Words
A Picture Costs A Thousand Words
 
Putting Your Images on a Diet (SmashingConf, 2014)
Putting Your Images on a Diet (SmashingConf, 2014)Putting Your Images on a Diet (SmashingConf, 2014)
Putting Your Images on a Diet (SmashingConf, 2014)
 
Web graphics vector & roaster101
Web graphics  vector & roaster101Web graphics  vector & roaster101
Web graphics vector & roaster101
 
We should optimize images
We should optimize imagesWe should optimize images
We should optimize images
 
Velocity Conference 2013: A Picture Costs A Thousand Words
Velocity Conference 2013: A Picture Costs A Thousand WordsVelocity Conference 2013: A Picture Costs A Thousand Words
Velocity Conference 2013: A Picture Costs A Thousand Words
 
Castro Chapter 5
Castro Chapter 5Castro Chapter 5
Castro Chapter 5
 
File types pro forma
File types pro formaFile types pro forma
File types pro forma
 
Vste r2
Vste r2Vste r2
Vste r2
 
Image Optimization
Image OptimizationImage Optimization
Image Optimization
 
P1.1
P1.1P1.1
P1.1
 
Chapter 23: Web Images
Chapter 23: Web ImagesChapter 23: Web Images
Chapter 23: Web Images
 
High Performance Images in WordPress
High Performance Images in WordPressHigh Performance Images in WordPress
High Performance Images in WordPress
 
Image optimization q_auto - f_auto
Image optimization q_auto - f_autoImage optimization q_auto - f_auto
Image optimization q_auto - f_auto
 
Digital Graphics Pro Forma
Digital Graphics Pro FormaDigital Graphics Pro Forma
Digital Graphics Pro Forma
 
File types pro forma
File types pro forma File types pro forma
File types pro forma
 
File types pro forma
File types pro formaFile types pro forma
File types pro forma
 
Image processing
Image processingImage processing
Image processing
 
Trouble with distribution
Trouble with distributionTrouble with distribution
Trouble with distribution
 

Dernier

08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAndikSusilo4
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 

Dernier (20)

08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 

Preparing Images for the Web: Image Optimization Tips

  • 1. Preparing Images for the Web Advanced CSS Stephen Ireland
  • 2. Image Optimization Why do I need to know about this? Because it can affect; • Download speeds (don’t forget dial-up or mobile users) • Quality (you want your images to be high quality) • Colour (different screens, different browsers) • Accessibility (colour blindness considerations) Advanced CSS Stephen Ireland
  • 3. Considerations What options / tools do we have? • Image size (physical dimensions) • File type (GIF, JPEG or PNG - which is best?) • Compression (size versus quality issues) • Save for Web (option in Adobe Photoshop 6.5+) Advanced CSS Stephen Ireland
  • 4. Image Size • Web images should be measured in pixels (px) • Adjust Photoshop: Preferences > Units & Rulers... • Resolution should be 72dpi (for screen use) • Crop images to minimum physical size; Advanced CSS Stephen Ireland
  • 5. File Types The big three: • GIF • JPEG • PNG Each type has its uses. We need to know which is best depending on the image and its use. Advanced CSS Stephen Ireland
  • 6. GIF (.gif) • Best for graphic artwork • Images made up of blocks of colour • Text, line art, patterns etc (not gradients or photos) • Can use lossless compression • Can have transparent background, although not perfect Advanced CSS Stephen Ireland
  • 7. JPEG (.jpg) • Best for images with continuous tones • Images with subtle changes in colour • Photographic images and gradients are ideal • Use of ‘lossy’ compression to reduce file size • Watch out for ‘artefacts’ when compression is high Advanced CSS Stephen Ireland
  • 8. PNG (.png) • Good for images requiring complete transparency • Not well supported, browser compatibility iffy • IE can be ‘hacked’ to support transparency in PNGs • You may find a use for PNG files but its probably worth finding a workaround to avoid the browser inconsistencies Advanced CSS Stephen Ireland
  • 9. Optimization & Compression • Reduce the file size, reduce the download time • Use ‘Save for Web’ in Photoshop • Learn the keyboard shortcut! • Each option is a compromise between reproduction quality and download time Advanced CSS Stephen Ireland
  • 10. Photoshop: Save for Web • Choose from the presets • Compare quality against file size • Override preset if necessary Advanced CSS Stephen Ireland
  • 11. Save for Web: Typical Presets JPEG images • Try not to go below 60% quality - artefacts obvious, reduce physical size of image instead • Don’t save image with ICC profile - this will cause colour match problems in Safari on the Mac GIF images • Try 64 or 128bit Dithered - This should work fine • Using transparency? - test on background and edit pixel edges manually if necessary! Advanced CSS Stephen Ireland
  • 12. Final Notes • Remember; compression is a compromise between file size and download time. Not everyone has fast internet access. • Cut out wasted pixels from your images, this will reduce your file size, and therefore download time. • Consider the colours used in your images carefully, check they won’t cause problems for those with colour blindness. • http://www.websiteoptimization.com/ offers free speed tests. Part of these tests will tell you how long your images will take to download. Advanced CSS Stephen Ireland