Gathering detailed insights and metrics for gatsby-remark-images-contentful
Gathering detailed insights and metrics for gatsby-remark-images-contentful
Gathering detailed insights and metrics for gatsby-remark-images-contentful
Gathering detailed insights and metrics for gatsby-remark-images-contentful
The best React-based framework with performance, scalability and security built in.
npm install gatsby-remark-images-contentful
Typescript
Module System
Min. Node Version
Node Version
NPM Version
gatsby-source-shopify@9.0.0
Updated on Jan 07, 2025
gatsby-link@5.14.1
Updated on Jan 07, 2025
gatsby-source-contentful@8.15.0
Updated on Jan 07, 2025
v5.14.0
Updated on Nov 06, 2024
gatsby-source-shopify@8.13.2
Updated on Oct 28, 2024
gatsby-source-wordpress@7.13.5 and 6 more...
Updated on Oct 28, 2024
JavaScript (58.91%)
TypeScript (38.71%)
CSS (1.05%)
HTML (0.69%)
MDX (0.45%)
Shell (0.13%)
Dockerfile (0.03%)
PHP (0.02%)
EJS (0.01%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
55,908 Stars
21,738 Commits
10,290 Forks
719 Watchers
316 Branches
3,966 Contributors
Updated on Jul 15, 2025
Latest Version
6.14.0
Package Id
gatsby-remark-images-contentful@6.14.0
Unpacked Size
71.92 kB
Size
14.58 kB
File Count
8
NPM Version
lerna/3.22.1/node@v20.11.1+arm64 (darwin)
Node Version
20.11.1
Published on
Nov 06, 2024
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
4
Processes images in markdown so they can be used in the production build using Contentful's Image API
In the processing, it makes images responsive by:
srcset
and sizes
of the img
element so regardless of the width of the
device, the correct image is downloaded.npm install gatsby-remark-images-contentful
1// In your gatsby-config.js 2plugins: [ 3 `gatsby-plugin-sharp`, 4 { 5 resolve: `gatsby-transformer-remark`, 6 options: { 7 plugins: [ 8 { 9 resolve: `gatsby-remark-images-contentful`, 10 options: { 11 // It's important to specify the maxWidth (in pixels) of 12 // the content container as this plugin uses this as the 13 // base for generating different widths of each image. 14 maxWidth: 590, 15 }, 16 }, 17 ], 18 }, 19 }, 20]
Name | Default | Description |
---|---|---|
maxWidth | 650 | The maxWidth in pixels of the div where the markdown will be displayed. This value is used when deciding what the width of the various responsive thumbnails should be. |
linkImagesToOriginal | true | Add a link to each image to the original image. Sometimes people want to see a full-sized version of an image e.g. to see extra detail on a part of the image and this is a convenient and common pattern for enabling this. Set this option to false to disable this behavior. |
showCaptions | false | Add a caption to each image with the contents of the title attribute, when this is not empty. Set this option to true to enable this behavior. |
wrapperStyle | Add custom styles to the div wrapping the responsive images. Use regular CSS syntax, e.g. margin-bottom:10px; background: red; | |
backgroundColor | white | Set the background color of the image to match the background of your design |
withWebp | false | Additionally generate WebP versions alongside your chosen file format. They are added as a srcset with the appropriate mimetype and will be loaded in browsers that support the format. |
loading | lazy | Set the browser's native lazy loading attribute. One of lazy , eager or auto . |
This means that there are multiple incompatible versions of the sharp
package installed in node_modules
. The complete error typically looks like this:
1Something went wrong installing the "sharp" module 2 3dlopen(/Users/misiek/dev/gatsby-starter-blog/node_modules/sharp/build/Release/sharp.node, 1): Library not loaded: @rpath/libglib-2.0.dylib 4 Referenced from: /Users/misiek/dev/gatsby-starter-blog/node_modules/sharp/build/Release/sharp.node 5 Reason: Incompatible library version: sharp.node requires version 6001.0.0 or later, but libglib-2.0.dylib provides version 5801.0.0
To fix this, you'll need to update all Gatsby plugins in the current project that depend on the sharp
package. Here's a list of official plugins that you might need to update in case your projects uses them:
gatsby-plugin-sharp
gatsby-plugin-manifest
gatsby-remark-images-contentful
gatsby-source-contentful
gatsby-transformer-sharp
gatsby-transformer-sqip
To update these packages, run:
1npm install gatsby-plugin-sharp gatsby-plugin-manifest gatsby-remark-images-contentful gatsby-source-contentful gatsby-transformer-sharp gatsby-transformer-sqip
If updating these doesn't fix the issue, your project probably uses other plugins from the community that depend on a different version of sharp
. Try running npm list sharp
or yarn why sharp
to see all packages in the current project that use sharp
and try updating them as well.
No vulnerabilities found.
Reason
security policy file detected
Details
Reason
no dangerous workflow patterns detected
Reason
GitHub workflow tokens follow principle of least privilege
Details
Reason
license file detected
Details
Reason
no binaries found in the repo
Reason
Found 20/25 approved changesets -- score normalized to 8
Reason
8 commit(s) and 2 issue activity found in the last 90 days -- score normalized to 8
Reason
SAST tool is not run on all commits -- score normalized to 8
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
100 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More