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

Usage on Windows #8

Closed
andrekosak opened this issue Oct 6, 2017 · 7 comments
Closed

Usage on Windows #8

andrekosak opened this issue Oct 6, 2017 · 7 comments

Comments

@andrekosak
Copy link

Hello, i have one more question regarding Windows. I have Node 6 here, but i cannot manage how to use the cli properly. The point is, that it creates the new image in the same folder, and NOT uses the folder path i passed as "-o" parameter. See my output:

Admin@DESKTOP-RLI0V1T MINGW64 /d/Site/maerchen (master)
$ sharp -i ./static/images/* -o ./out resize 1500 0
D:%5CSite%5Cmaerchen%5Cout
D:%5CSite%5Cmaerchen%5Cout

So it's creating new files with wrong names in folder where i stand.
I have tried using the "Git Bash" and "Cmder". Result is the same.

Would someone have a hint for me?

@vseventer
Copy link
Owner

Hi @andrekosak, can you try running the command for a single input file only (without using *). I'm wondering whether Windows might interpret the asterisk differently, messing up the CLI.

@andrekosak
Copy link
Author

i have tested it too, but no luck. then i gave up. now i am using docker to resize images on Windows: mount the folder and than to the stuff inside of container.

@Peilin-D
Copy link

Peilin-D commented Jan 2, 2018

I'm also having this problem.

@vseventer
Copy link
Owner

@andrekosak @Peilin-D Thank you for reporting, and apologies for the late fix.

@nltesown
Copy link

nltesown commented Jan 7, 2019

I'm having the same issue (using v1.8.0) with this command. Has this been fixed?

sharp -i ./*.tif -o ./output -f jpg : all the input files seem to be processed but there's only one output file without extension, named output (instead of creating a directory), each new file squashing the previous one.

@vseventer
Copy link
Owner

@nltesown You need to specify the output pattern - see #13 (comment)

@nltesown
Copy link

nltesown commented Jan 7, 2019

Which gives:

sharp -i ./*.tif -o ./output/{name}.jpg -f jpg

It works! Thanks a lot!

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

4 participants