Skip to content

Is it possible to use this plugin with static images? #39

Answered by coreyward
birdcoates asked this question in Q&A
Discussion options

You must be logged in to vote

I typically avoid shipping raster images in my app repository. Adding them to Sanity has a number of benefits, including the Image API and automatic edge CDN caching/serving, and it keeps the repository lighter.

Alas, since this plugin leverages the Sanity Image API, there's not a way to work with local images directly. If you wanted to do something like this, I would recommend forking the plugin and revising it slightly to use Imgix with your website as the source. Sanity and Imgix have very similar APIs for transformations, so this should be somewhat straightforward.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@birdcoates
Comment options

Answer selected by coreyward
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants