contentful-userland / gatsby-contentful-starter

Gatsby starter for a Contentful project from the community.

Home Page:https://contentful-userland.github.io/gatsby-contentful-starter/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support traced placeholder for images

stefanjudis opened this issue · comments

Traced placeholders are a very nice way to improve the user experience for images that are still loading. It would be awesome to have these. 🎉

traced

I love this feature so much and would freak out to see it working with gatsby + contentful.

Issue here is: The tracing has to run on the local machine since contentfuls image api does not support this. We would need to patch the contentful source plugin to support that feature.

It would have to work somehow this way:

  1. Download image from Contentful image API to the local machine
  2. Run the trace from gatsby-plugin-sharp on these images
  3. Extend the query fragments to contain these new traced images as base64

🚀 🎉