Skip to content
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

Use automatic transformations in AssetPreview #14

Open
aulonm opened this issue Nov 4, 2022 · 0 comments
Open

Use automatic transformations in AssetPreview #14

aulonm opened this issue Nov 4, 2022 · 0 comments

Comments

@aulonm
Copy link

aulonm commented Nov 4, 2022

Hi!

We are looking at our Cloudinary usage and wanted to restrict showing original images when rendering the images in sanity. I see that in the cloudinary plugin you show the original image in AssetPreview.tsx.

Would it be possible to add q_auto,f_auto in the url when showing the preview? This would make cloudinary do an automatic transformation on the format and quality. We dont need 100% quality when showing the preview, so I'm guessing this would benefit every single user of this plugin.

Here is an example on how the URL needs to be for the transformation to happen from cloudinary:
https://res.cloudinary.com/<project>/f_auto,q_auto/<version>/<id>

This would benefit for both v2 and v3 users of this plugin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant