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

useImage() in combination with Sanity provider generates a broken, incorrect image path #1297

Open
toddpadwick opened this issue Mar 22, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@toddpadwick
Copy link

The following function should return this path: https://cdn.sanity.io/images/xenf4f6n/production/228cc6aa1c47854699f13c35719073cfcaf7ee54-1552x982.png?h=10&blur=2&q=10&auto=format

const myImgUrl = https://cdn.sanity.io/images/xenf4f6n/production/228cc6aa1c47854699f13c35719073cfcaf7ee54-1552x982.png

return useImg(myImgUrl, { h: 10, blur: 2, q: 10 },{provider:'sanity'})

But it instead, returns this broken path:
https://cdn.sanity.io/images/xenf4f6n/production/.1552x982.png?h=10&blur=2&q=10&auto=format

@danielroe danielroe added the bug Something isn't working label Mar 22, 2024 — with Volta.net
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants