-
Notifications
You must be signed in to change notification settings - Fork 20
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
unix error: Is a directory #13
Comments
I'm getting this error too. Trying to convert a png to jpg.
says
And specifying a path
says
|
Me too. I'm trying to resize a directory of images so they have a max-width of 100px and am getting the following error (where the output folder ./logos/ already exists): $ npx sharp-cli -i public/img/logos/*.png -o logos/ resize 100
info sharp Downloading /~https://github.com/lovell/sharp-libvips/releases/download/v8.6.1/libvips-8.6.1-darwin-x64.tar.gz
vips__file_open_write: unable to open file "/Users/pdehaan/dev/github/../logos" for writing
unix error: Is a directory
vips__file_open_write: unable to open file "/Users/pdehaan/dev/github/../logos" for writing
unix error: Is a directory |
Hi @pdehaan, you need the specifiy the output files. |
@joejemmely Thanks, that seems to get me closer! I didn't see the It seems like without the But as it turns out, specifying |
For folks stumbling here, following @joejemmely's comment, I solved my issue like this
And that did the trick! Thanks @joejemmely |
I wish the {name}{ext} was mentioned in the documentation and in one the examples... |
Hi and thanks for the great cli!
I've used it before and everything was ok, but now when I'm
-i ./big/* -o ./mini resize 200
I'm getting:Am I doing something wrong?
The text was updated successfully, but these errors were encountered: