DEV Community

Rick Viscomi for Google Web Dev

Posted on

13 5

New "State of the Web" video: Images!

Today I published a new video in my "State of the Web" series in which I talk with Colin Bendell from Cloudinary about the state of images. We cover a lot of ground in this 47 minute video, so I made this written summary of the conversation points. Hope you like it!

  • Image loading techniques for layout stability
    • Set explicit height/width
    • Low quality image placeholders
  • Conventional wisdom for file formats
    • JPEG great for photographs
    • GIF/PNG great for illustrations and icons
    • SVG great for vector based imagery
    • varies based on browser support
    • varies based on transparency requirements
  • Fine tuning image quality
    • JPEG has quality index (eg 80)
    • Chroma subsampling
    • Progressive JPEG
  • Serving responsive images for mobile friendliness
    • srcset
    • picture and src
    • Media queries
    • laptops are mobile devices
  • Using Client Hints to understand the user's capabilities
    • Server negotiates what to return to the client based on what they can support
    • viewport size
    • connection type
    • Fingerprinting security
    • User Agent string is unreliable
  • Role of images in accessibility
    • 50% of images properly use the alt attribute, per HTTP Archive and Lighthouse data
    • In absence of an image's alt attribute, screen readers speak the URL
    • Abled developers may forget about accessibility
    • Machine learning systems are working on generating alt text
  • Human visual perception
    • Color blindness
    • Color sensitivity
    • How we visually optimize images may not be optimal for everyone
    • E-commerce implications of image/color fidelity
  • WebP tradeoffs
    • ~10-30% byte savings over JPEG
    • Forced chroma subsampling could lead to poor quality for images with text
    • Limited to sRGB color space
  • Best practices for animations
    • Animated GIFs are really bad, can quickly grow to MB
    • mp4 support in img src
    • Ad tech industry found that animations/motion are great for ads
    • Using video tag is great, but may be platform constrained like on CMS
  • Image page weight
  • Automating image quality
    • We should be depending on algorithms to determine optimal techniques
    • Squoosh app visualizes impact of optimization
    • Incorporate into CMS or build system
  • User-generated images
    • Optimization needs to scale up to handle any image a user may upload
    • Security concerns
  • Recommended resources

Google AI Education track image

Build Apps with Google AI Studio 🧱

This track will guide you through Google AI Studio's new "Build apps with Gemini" feature, where you can turn a simple text prompt into a fully functional, deployed web application in minutes.

Read more →

Top comments (0)

Heroku

Save time with this productivity hack.

See how Heroku MCP Server connects tools like Cursor to Heroku, so you can build, deploy, and manage apps—right from your editor.

Learn More

👋 Kindness is contagious

Explore this practical breakdown on DEV’s open platform, where developers from every background come together to push boundaries. No matter your experience, your viewpoint enriches the conversation.

Dropping a simple “thank you” or question in the comments goes a long way in supporting authors—your feedback helps ideas evolve.

At DEV, shared discovery drives progress and builds lasting bonds. If this post resonated, a quick nod of appreciation can make all the difference.

Okay