Images, Files, and Video in Gatsby
Gatsby provides multiple solutions for adding images, video, and files to your projects. And a pro tip: you don’t necessarily have to use GraphQL! From imports and use of the static folder to dynamic queries with Gatsby Image to prevent image bloat, you’ve got options.
This section will walk you through several common patterns for handling media with Gatsby, where you can learn about the pros and cons of each method.
In this section:
- Importing Assets Directly Into Files
- Using the Static Folder
- Using gatsby-image
- Working with Images in Gatsby
- Preoptimizing your Images
- Working With Video
- Importing Media Content
- Working with GIFs
Edit this page on GitHub