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

Does not work when path or filename contains spaces #47

Open
pojda opened this issue Jul 30, 2017 · 2 comments
Open

Does not work when path or filename contains spaces #47

pojda opened this issue Jul 30, 2017 · 2 comments
Labels

Comments

@pojda
Copy link

pojda commented Jul 30, 2017

$svgexport file2.svg out.png 64x
Error: Unable to load file (fail): /Users/xx/yy zz/file2.svg

when moving it to a path without any spaces it works just fine

$svgexport file2.svg out.png 64x
/Users/xx/file2.svg /Users/xx/out.png png 100% 64x 0:0:12922.66:462.66 827050.68:29610.66
@shakiba
Copy link
Collaborator

shakiba commented Nov 20, 2017

This is probably a phantomjs issue, see: #14

@shakiba shakiba added the bug label Nov 20, 2017
@arthurvernon
Copy link

arthurvernon commented Jul 10, 2020

hit the same problem.

If I supply an input of '...icons/node/Blah 1.svg'

then in index.js code...
if (!Array.isArray(input)) {
input = input.split(/\s+/);
}

will convert my file path of one file into an array of two strings:
['...icons/node/Blah', '1.svg']

Subsequently the
input[0] = path.resolve(cwd, input[0]);
etc fails as the file does not exist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants