Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Question: How to use image processing for images uploaded via Netlify CMS? #7
With Netlify CMS one has the possibility to define fields and UI for editing these fields which are then saved to a YAML or JSON file and uploaded to Github. Then these data files can be loaded into a Gatsby app and added to siteMetadata. One can also include fields of type image and they will then be uploaded to Github through the CMS. For example, I can have teamMembers with the field "photo" of type image. With Gatsby I can then query for them like this:
However, I couldn't find how to use the Gatsby's image processing capabilities in such a query
This concerns all the images uploaded via Netlify CMS, not necessarily saved as siteMetadata, since it is then more convenient not to query for them via
Is there a way to somehow wrap queries for such fields (like photo above) with image processing queries in GraphQL? Or if not, what could be a reasonable way of processing images which are uploaded from Netlify CMS?
I'm actually working on a solution to this on the
Cool, thanks! I will definitely do.…
On Fri, Nov 24, 2017, 10:33 PM Austin Green ***@***.***> wrote: Take a look at the project now, I added image processing via gatsby-transformer-sharp — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#7 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAVeVNqzDDEViHp-9m_0kyKrKjMTh0euks5s5zYTgaJpZM4QaLo-> .