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

crop method should accept comma , #43

Open
ebauger opened this issue Apr 20, 2022 · 0 comments
Open

crop method should accept comma , #43

ebauger opened this issue Apr 20, 2022 · 0 comments

Comments

@ebauger
Copy link

ebauger commented Apr 20, 2022

I got a runtime for the crop method:

.crop('top,left')


@sanity/image-url/lib/node/builder.js:173
            throw new Error("Invalid crop mode \"" + value + "\"");
                  ^

Error: Invalid crop mode "top,left"

Ref :
https://www.sanity.io/docs/image-urls#crop-749d37d946b6
https://docs.imgix.com/apis/rendering/size/crop

@ebauger ebauger changed the title https://www.sanity.io/docs/image-url#cropmode crop method should accept comma , Apr 20, 2022
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