1.0.3 • Published 4 years ago
@fourpost/gatsby-plugin-extract-image-colors-datocms v1.0.3
Since DatoCMS doesn't actually download images during Gatsby builds, we need an additional way to grab image colors. Appending ?palette=json
to DatoCMS image URLs returns the color palette, which we add to the GraphQL node.
This is a modified version of gatsby-plugin-extract-image-color
Installation
npm i @fourpost/gatsby-plugin-extract-image-color
- Add config to
gatsby-config.js
// gatsby-config.js
module.exports = {
plugins: [
//... Other plugins
'gatsby-plugin-extract-image-color'
]
}