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

Can't find filename with spaces on Windows #23

Open
Christopher-Hayes opened this issue Jan 30, 2020 · 0 comments
Open

Can't find filename with spaces on Windows #23

Christopher-Hayes opened this issue Jan 30, 2020 · 0 comments

Comments

@Christopher-Hayes
Copy link

Christopher-Hayes commented Jan 30, 2020

If I try to pass a filename that has a space in it, the script can't find the file No PNG or JPEG images found. This shouldn't happen if I'm putting my filename in quotes, but I'm still getting that error. Even using escape characters like filename\ with\ spaces.jpg doesn't work either.

This is what I've tried

tinypng "filename with spaces.jpg"
tinypng 'filename with spaces.jpg'
tinypng filename\ with\ spaces.jpg

Every time I get the same No PNG or JPEG images found., I was able to fix this by renaming the file to not have spaces. But, it would be nice if I didn't have to do that step.

Specs

Terminal: Git Bash for Windows (mintty 3.1.0 x86_64-pc-msys)

OS: Windows 10

TinyPNG CLI version: v0.0.7

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