gatsby-uc / gatsby-source-strapi

Gatsby source plugin for building websites using Strapi as a data source
MIT License
355 stars 183 forks source link

Support ImageSharp[gatsby-image] #41

Closed sylvesteraswin closed 2 years ago

sylvesteraswin commented 5 years ago

I am starting to use Strapi to create a photography portfolio site. I am uploading images using the image uploader.

I would like to use gatsby-image plugin for the images uploaded through strapi. Is it possible to add gatsby-images as part of this plugin?

turkyden commented 5 years ago

Me too, i have also meet this problem and unabled to fetch the image from strapi. Duplicate of # @sylvesteraswin

fusioneery commented 5 years ago

+1. For now, it works very strange: all images are cached and mixed up between content types.

dkarski commented 5 years ago

@sylvesteraswin I think you can use gatsby-image for your images.

Depending on the gatsby starter you used, you may need to include gatsby-transformer-sharp and gatsby-plugin-sharp as well, and make sure they are installed and included in your gatsby-config.

In my case it's not work with images for the WYSWIG content, there gatsby can't transform images even I tired implement new Node with mediaType text/markdown like in this workround issuecomment-399299309. Images isn't transformed by gatsby-remark-images.

Pedromigacz commented 3 years ago

Any progress on this issue? I'm trying to do exactly that, and have not found a solution yet