Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Mobile Image Processing at London Web Perf Meet...

Tim Kadlec
February 11, 2016

Mobile Image Processing at London Web Perf Meetup, 2016

Loading images isn’t as simple as you think. We often discuss image weight and download time, but mobile devices deal with many other challenges, such as decode times in underpowered CPUs, limited CPU/GPU transfers, and memory consumption. In this talk we’ll explain those limitations, their impact, and how you can best handle them on your own site.

Presented at London Web Perf Meetup in London, UK on Feb 11, 2015.

Tim Kadlec

February 11, 2016
Tweet

More Decks by Tim Kadlec

Other Decks in Programming

Transcript

  1. R: 45 G: 48 B: 46 A: 1 R: 177

    G: 167 B: 157 A: 1 R: 190 G: 187 B: 181 A: 1
  2. “…25% of new Android phones have only 512MB of RAM.”

    Jen Fitzpatrick VP of product management for Google Maps
  3. (600 x 600 - 550 x 550) x 4 =

    230,000 wasted bytes
  4. (200 x 200 - 150 x 150) x 4 =

    70,000 wasted bytes 230,000 wasted bytes
  5. 4

  6. 4 4

  7. 4

  8. 4 2

  9. 4

  10. 4 1

  11. 4

  12. 4 2

  13. (W x H x 3) - (W x H x

    SUBSAMPLE_LEVEL x 2)
  14. “…as bandwidth grows, and as processing power grows, and as

    browsers get better we just keep filling everything up. ” Jeff Veen
  15. RESIZE IMAGES 1 2 META VIEWPORT IS YOUR FRIEND 3

    SMALL BREAKPOINTS FOR LARGE IMAGES
  16. RESIZE IMAGES 1 2 META VIEWPORT IS YOUR FRIEND 3

    USE 4:2:0 SUBSAMPLING 4 SMALL BREAKPOINTS FOR LARGE IMAGES