sharp-cli icon indicating copy to clipboard operation
sharp-cli copied to clipboard

No input files when the path is relative on windows .\

Open oom- opened this issue 6 months ago • 2 comments

It seems to not detect correctly input files when it's relative (powershell):

npx sharp-cli tint 600 --input .\test.png              
Missing dependent arguments:
input -> output

Specify --help for available options

then:

npx sharp-cli tint 600 --input .\test.png -o .\testsmall.png
No input files

Specify --help for available options

or

npx sharp-cli tint 600 --input .\pcb-traces.png -o .\testsmall.png
No input files

this works:

 npx sharp-cli resize 200 200 -i logo.png -o logo-test.png

this works:

 npx sharp-cli resize 200 200 -i ./logo.png -o ./logo-test.png

oom- avatar Jun 23 '25 16:06 oom-

@oom- Haven't tried, but can you try running:

npx sharp-cli tint 600 --input '.\test.png'

vseventer avatar Jun 23 '25 18:06 vseventer

Hello @vseventer, sorry for the delay

Yes not working as well:

npx sharp-cli tint 600 --input '.\test.png' -o out.png
No input files

Specify --help for available options

oom- avatar Jun 28 '25 10:06 oom-