Open alextenczar opened 1 year ago
+1 I came here looking for a way to do this too!
I've just realised that a potential solution could be to add a URL parameter on the end of the image URL to request a smaller image from Sanity. See here: https://www.sanity.io/docs/image-urls
So you could append '?h=200' to the end of the URL and Sanity would return the image with a height of 200 pixels.
This seems like a nice solution as it allows you to keep the full resolution images stored in Sanity, however, it would still use up more storage on your Sanity account
Hey, I'm wondering if there's any way to default to using one of the smaller image sizes for the selected image that's stored on Sanity. Many of the images I select are way too large and it results in a large asset (4+ MB). It would be awesome to select one of the other image size urls provided by the Unsplash API:
any guidance in this would be appreciated. Thank you!