💡 Ability to transform image (e.g from jpg/png to webp/avif) #828
fluid-design-io
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
Not necessarily what you're asking for, but we've built Keystatic Cloud Images, a service that lets you upload images in a library, and gives you an URL to display the optimised image (converted to the best format based on the browser making the request). You can also pass query parameters for the width, height, quality and format (cropping). |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I love the concept of the no DB CMS. And one thing I'd like to have is the ability to "post-process" images that were uploaded via
fields.image()
. Most modern browsers are now supporting webp and avif formats, they have some advantages over jpgs and pngs. But most of the image editors or apps don't offer a direct webp/avif export (e.g Figma).So here're my thoughts:
One simple way is to use sharp package and it's quite easy to implement:
Here's how they might look like in Keystatic config:
What do you all think?
Beta Was this translation helpful? Give feedback.
All reactions