-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ability to serve images in Webp format #233
Comments
Hey @gregorygaines, the plugin already supports the |
Awesome! One last question. Is this feature available for serving directly from the graphcms CDN instead of downloading locally if I want to take advantage of graphcms caching? |
Yeah! You can upload If you want, you also convert images from png to https://graphcms.com/docs/api-reference/content-api/assets#convert-file-type |
Thanks is awesome @jpedroschmitz, but not quite what I need; I'll explain further. When using The image is unoptimized; served in it's original format. However, when the CDN url generator code is modified to include const src = `https://media.graphcms.com/resize=width:${width},height:${height},fit:${fit}/
output=quality:${quality}/auto_image/compress/${baseURL}`; The aforementioned image is now served compressed and converted to the I can continue modifying the plugin directly myself, but modifying future releases of the plugin could prove troublesome which is why I hope this can be added as a feature. Regards, |
That's a feature from Filestack, as you mentioned.
We can add it as an option, but I think the best option here is to add support to the image option https://www.gatsbyjs.com/docs/reference/built-in-components/gatsby-plugin-image/#formats I'll reopen it! |
Your React library for loading GraphCMS images has the ability to compress and serve images in the Webp format. It would make sense to include the functionality in this library, but unfortunately I can't find it.
The text was updated successfully, but these errors were encountered: