Add responsiveness support for images uploaded through Netlify CMS
See original GitHub issueCurrently, the recommended way to upload images to a static website through Netlify CMS is by using the static
folder, which does not offer any support for responsiveness. I would like to ask for a way to make CMS-managed assets queryable through GraphQL.
Issue Analytics
- State:
- Created 6 years ago
- Comments:14 (13 by maintainers)
Top Results From Across the Web
Transform images - Netlify Docs
Use dynamic image transformation for files tracked by the Large Media service. Upload images at full resolution, then serve exactly the file size...
Read more >Netlify CMS 2.1.0 adds external media support with Uploadcare
Netlify CMS 2.1.0 adds external media support with Uploadcare, allowing files like images and videos to be stored outside of your Git ...
Read more >Media Management With the Cloudinary-Netlify CMS Integration
You can do a lot more with the Media Library widget, for example, upload, tag, move, or delete images. In other words, the...
Read more >How to Optimize Images on Netlify with the Cloudinary Build ...
Step 3: Updating plugin configuration to upload images to Cloudinary ... By default, the Cloudinary Build Plugin for Netlify will “fetch” the ...
Read more >Gatsby + Netlify CMS images from Markdown are not converted
The images that I uploaded. They were not responsive. But all of the original post that come with the templete are responsive. Also...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank you for your kind assistance! Although the
createNodeField
method didn’t work as expected, I ended up with the following code, based on yours:It would be great if there was a more in-depth documentation about linking nodes (or even their properties) together.
Netlify Image Solution
To allow using gatsby image processing plugins on your frontmatter
In each Markdown file
In gatsby-config.js
Under plugins add the code to access the static image folder as files
In gatsby-node.js
Create a new nodeField for each image needed
In config.yml
Add media folder
In each collection in config.yml
State relative path for each collection that require an image in the frontmatter as a hidden field that user doesn’t need to modify
- {label: "Relative Path", name: "relpath", widget: "hidden", default: "../../.."}
Query in Graphql