• What?
  • Who?
  • Contact Jonathan Jeter
  • Privacy Policy

Jonathan Jeter

Director of Application Development

  • Jonathan Jeter on Google+
  • Jonathan Jeter on Facebook
  • Follow Jonathan Jeter on Twitter
  • Jonathan Jeter on LinkedIn
  • Jonathan Jeter's rss feed
Home Web Development HTML5 Adaptive Images for Responsive Web Design

Adaptive Images for Responsive Web Design

February 2, 2013 By Jonathan Jeter Leave a Comment



by Christopher Schmitt at HTML5 Texas Conference, Austin, Texas (Deck)

“The open web doesn’t stop at our desktop. Smart phones and tablets not only contain more computing power and better browsers than the computers that started the Internet economy, they have better displays.In this session presented by Christopher Schmitt, we will work through tips and tricks to develop future friendly images in our sites and apps.”

Adaptive Images in Responsive Web Design

Think about the iPad, which presents so many design challenges. It can be wi-fi only or 3G, so bandwidth issues can be present. It has retina, so there can be display issues. When you design for web, you want to have great-looking images, but how do we get higher resolution images to those devices.

Why don’t we ask the browser? http://www.usearagentstring.com/ Available since the first browser Mozilla/1.0 (Win3.1), but browser put tons of stuff in the user agent string and can be spoofed. Instead of asking the browser, we do feature testing.

Feature Testing vs Browser Sniffing

  • Browser width
  • Speed Tests

You can script it with JavaScript, jQuery or css media queries.

72 ppi (pixels per inch or points per inch) was standard – Windows increased it to 96 ppi. Retina display is 300 ppi at 12 inches from the eye. Give crisper text and changes resolution based on type of device.

[In 2013, Intel sees their product line] offer a higher resolution experience than a top of the line 1080p television.

Retina display means larger images and longer download times, so we can’t just serve those large files to everyone.

Speed Tests Hinder Speed and User Experience.

“Testing for speed of an internet connection is like stepping in front of a car to see how fast it’s going” – Christopher Schmitt

Mobile devices have a native speed test

IMG

  1. .htaccess
  2. <picture> and/or srcset
  3. HiSRC

Filament .htaccess – add additional content to an image tag

<script src=”responsiveimgs.js”></script>

The server has now way to know what resolution the client’s device is.

Add .htaccess, js, php5, gd lib*, & then <img>

media queries in HTML – borrow from the video element http://www.w3.org/community/respimg/2012/03/15/polyfilling-picture-without-the-overhead/

add if-lese html, js borrow <vide0>

@srcset standard – proposed

HiSRC – HD

Set, forget it

<script src=”hisrc.js”>

HiSRC does a series of checks to find out responsive path for images. Includes a native speed test. Checks pixel density. Forces a speed test. If speed is less than 4G, gives desktop images – high speed/high density swaps in retina images

Browsers that prefetch can be tricky.

css is core – use css media queries

Workarounds & Tricks

  1. background-size: auto
  2. SVG
  3. font-based solutions
  4. compressed jpegs

FitText

Native SVG – HTML5 Broilerplace

jQuery check

Use unicode characters <meta charset=”utf-8″>

Font-based RWD – font-family can require downloading more fonts

Icon Fonts – be careful if the icons are based on a character in the font

Compressed jpegs – make a large jpeg and compress it at 100%. Doesn’t work with high contrast or subtle gradients. Works well on images with a nice valley in the histogram, not when there are spikes. imageoptim

IMG – New school (we need a responsive image format where the browser pulls in the right size image, like the .ico file)

http://nonbreakingspace.tv

 

 

 

Related articles
  • Bandwidth Media Queries? We Don’t Need ‘Em!
  • The new rules of the responsive web
  • Retina Ready Images and Responsive Web Design
  • Developing a responsive, Retina-friendly site (Part 1)

Tell someone about this:

  • Email
  • Print
  • Twitter
  • LinkedIn
  • Facebook
  • More
  • Reddit
  • Pocket
  • Tumblr

Like this:

Like Loading...

Related

Filed Under: HTML5, Web Development Tagged With: Adaptive Images, add if-lese html, Bandwidth Media Queries, Better browsers, Browser Sniffing Browser, Christopher Schmitt, Christopher Schmitt Mobile, Christopher Schmitt Mobile devices, conference notes, css media, css media queries, design challenges, desktop images, font Compressed jpegs, font-based solutions, fonts Icon Fonts, future friendly images, great-looking images, high speed/high density, higher resolution, higher resolution experience, higher resolution images, HiSRC Filament .htaccess, HTML5 Broilerplace jQuery, HTML5 Texas, HTML5 Texas Conference, img > media, internet connection, Internet economy, jpegs FitText Native, larger images, longer download times, media queries, mobile device, mobile devices, native speed, native speed test, open web, Ready Images, responsive image format, responsive path, responsive web, Responsive Web Design, responsive web Retina, Retina display, retina images, right size image, script src=, Smart phones, speed test, speed test IMG, Speed Tests, Speed Tests Hinder, spikes. imageoptim IMG, SVG font-based solutions, Technology Internet, Texas conference, user agent string, user experience, Web Design, Web Design Developing, width Speed Tests

About Jonathan Jeter

Jonathan Jeter has been creating websites since 1997. He is currently Director of Technology Services and Digital Development at TracyLocke, a shopper marketing agency. You can follow him @mywebthoughts, on LinkedIn or connect on Google+.

What do YOU think? Let me know...Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Stuff I Like to Talk About:

  • Business
  • Digital Imaging
  • Internet Marketing
    • Email Marketing
    • SEM / Paid Search
  • Life
  • Other Stuff
    • Health
    • Taekwondo (TKD)
  • Sports
    • Football
  • Technology
    • Augmented Reality
    • Awesome or Scary?
    • Marketing Technology
      • Data / Analytics
      • Omnichannel
    • Mobile
      • Android
    • Virtual Reality
  • User Interface / User Experience Design
  • Web Development
    • Browsers
    • CSS
    • Front-End Development
    • Google+ (Google Plus)
    • HTML5
    • JavaScript
    • jQuery
    • Mobile
    • MVC
    • Responsive Design
    • SEO
    • Social Media
    • UI/UX
    • WordPress

HTML

  • HTML Entities

JavaScript

  • MEAN.js

My Sites

  • Head Turning Media
  • Jonathan Jeter (Brand Yourself)
  • My Humor

Online Experts

  • Bryan Eisenberg
  • Danny Sullivan
  • Duane Forrester
  • Keith Brown
  • Louis Gray
  • Matt Cutts

UI / UX

  • Jared Spool
  • Paul Jeter
FreshBooks
Genesis Framework for WordPress Premise Landing Pages Made Easy

Most Popular

  • A Brief History of the Complete Redesign of Google…
  • To The Moon And Back: Taking The Leap Towards…
  • Intro to WebGL and Three.js – Front Porch…
  • Verizon Wireless – My Favorite Mobile Provider
  • The Relentless Pursuit of the Right Answer: Why…
  • Looking for Instagram or Android fonts or logos and…
  • Touchpoints, Platforms, and People: Designing an…
  • Exploring Standard Ad Unit Sizes: Google AdSense…
  • People Data and the Future of Marketing –…
  • Exploring Standard Ad Unit Sizes: Google AdSense…

Copyright © 2025 Jonathan Jeter

 

Loading Comments...
 

    %d