


Most solutions involve a lot of manual labor and bookkeeping to ensure every Or a design-tweak shaves 100px of width off your images. Optimize your images and then… several images are swapped in at the last minute Hold the image position so your page doesn’t jump while images load.ĭoing this consistently across a site feels like a task that can never be completed.Show a preview of the image while it loads.

Efficiently lazy load images to speed initial page load and save bandwidth.Strip all unnecessary metadata and optimize JPEG and PNG compression.Generate multiple smaller images so smartphones and tablets don’t download.Resize large images to the size needed by your design.Large, unoptimized images dramatically slow down your site.īut creating optimized images for websites has long been a thorny problem. Polyfilling object-fit/object-position for IE.Some ways you can use won’t work with gatsby-image. Optimized for fixed width/height images and images that stretch the full-width Note: gatsby-image is not a drop-in replacement for. Gatsby-image is a React component specially designed to work seamlessly withĬapabilities with advanced image loading techniques to easily and completely Speedy, optimized images without the work. See the migration guide to learn how to upgrade. The new Gatsby image plugin has better performance, cool new features and a simpler API. The gatsby-image package is now deprecated.
