# Setup images in MDX with Gatsby
This recipe installs and configures all
the necessary NPM packages & Gatsby plugins
to enable inline-images in MDX and MD files.
Based on https://www.gatsbyjs.org/docs/working-with-images-in-markdown/
This recipe:
---
Installs NPM Packages.
---
Adds Gatsby plugin `gatsby-source-filesystem` to read images from the src/images
directory.
---
Adds `gatsby-plugin-sharp`, `gatsby-transformer-sharp`, and `gatsby-transformer-remark`
to handle image processing.
---
Configures `gatsby-plugin-mdx` to resolve images in MDX files.
---
Once you've installed this recipe, you can start adding images to MDX pages.