Community Plugin
View plugin on GitHub


Basic transformer plugin enabling users to retrieve inline SVG processed by SVGO via Gatsby’s GraphQL API.

How to install

npm install gatsby-transformer-svgo-inline


yarn add gatsby-transformer-svgo-inline

Available options

  • svgoConfig is passed through to SVGO.

When do I use this plugin?

Author’s use case

I wanted to specify SVG’s within data structures (e.g. Markdown front-matter) and retrieve the optimized inline markup in the same query as for the rest of the front-matter.


  • “Examples of usage” in this README.
  • Consider adding logic to behave differently as a function of gatsby-source-filesystem source instance.
© 2022 Gatsby, Inc.