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

Image Optimization

Image Optimization

Image Optimization

Avatar for Jared Potter

Jared Potter

March 06, 2019
Tweet

More Decks by Jared Potter

Other Decks in Programming

Transcript

  1. Talk Expectations What this talk isn’t • Nitty gritties on

    image optimization What this talk is • Really simple tools to optimize images / gifs
  2. • Un-optimized images litter the web. • Increased load times

    (especially on slower mobile connections). • Increase data cost (again, to mobile). • Note: initial load only. Images will be cached. The Problem
  3. • Native tools (Mac Preview, Windows 10 Photo App) •

    Online tools (Bulk Image Resize) • 3rd party apps (JPEGmini) ◦ Server, JS uploader, SDKs • Convert .GIFs to .MP4s • Convert .PNGs to .JPEGs The Solution
  4. A

  5. B

  6. • Single background image jpeg ◦ Reduced from 11.1 MB

    to 3.5 MB (68% reduction) Native Solutions - Mac Preview
  7. • PNGs to JPEGs ◦ 41.4 MBs to 2.4 MBs

    (94% reduction) Native Solutions - Mac Preview
  8. A

  9. B

  10. GIF to MP4 FFMPEG Reduced GIF from 49,175,027 bytes to

    812,646 bytes ~98% Reduction! Instant loading gifs. Already done by imgur, giphy, gfycat, etc
  11. Other Photo Optimization Tips • Lazy Load your images ◦

    https://github.com/juanlizarazo /image-lazy-load-demos • Upcoming WebP (picture) and WebM (video) ◦ Both open source, royalty free (compared to h.264/h.265) ◦ Hybrid support webp/webm for chrome, optimized jpeg / gifs (mp4) for other browsers