Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Gatsby-plugin-image #29

Closed
frodeste opened this issue Apr 14, 2021 · 4 comments · Fixed by #34
Closed

Support for Gatsby-plugin-image #29

frodeste opened this issue Apr 14, 2021 · 4 comments · Fixed by #34

Comments

@frodeste
Copy link

Is support for gatsby-plugin-image planned?

@miguelt1
Copy link

I would love to have that feature too

@maplessmann
Copy link

I'm also interested in this feature. I'm trying to use this plugin, but it doesn't work with gatsby-plugin-image 😞

@ptimson
Copy link

ptimson commented Dec 18, 2021

Hey all! I've just hit this problem myself and found a solution. Use this plugin in conjunction with gatsby-plugin-remote-images

All you need to do install both plugins and configure like so:

 {
  resolve:`gatsby-source-cloudinary`,
  options: {
    cloudName: process.env.CLOUDINARY_CLOUD_NAME,
    apiKey: process.env.CLOUDINARY_API_KEY,
    apiSecret: process.env.CLOUDINARY_API_SECRET,
    resourceType: `image`,
  }
},
{
  resolve: `gatsby-plugin-remote-images`,
  options: {
    nodeType: 'CloudinaryMedia',
    imagePath: 'url',
  },
},

You will then get a localFile variable added to your allCloudinaryMedia and cloudinaryMedia queries that includes the
gatsby-plugin-image

@raae
Copy link
Collaborator

raae commented Jun 22, 2022

Support coming through gatsby-transformer-cloudinary@^3.0.0 (now in beta) + soon to be released gatsby-source-cloudinary@*0.2.0 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants