piqnt / svgexport

SVG to PNG/JPEG command-line tool and Node.js module
927 stars 85 forks source link

problems with certain filenames #14

Closed loominade closed 8 years ago

loominade commented 9 years ago

I cannot convert files with emoji in filenames:

$ svgexport 📖.svg 📖.png
Error: Unable to load file (fail): path/📖.svg
shakiba commented 9 years ago

The issue is with phantomjs, but it is more than just emoji charachters. Currently I don't have enough time to fully investigate it and report it to phantomjs, so please either report it to phantomjs or temporary do not use special characters in your file names.

loominade commented 9 years ago

I'd like to, but I don't know what to tell them. What do you think I should report to phantomjs?

Can't it operate with those filenames at all?

shakiba commented 9 years ago

I reported it.

davemackintosh commented 8 years ago

It also doesn't like spaces in the path name, regardless of whether you escape them or not.

shakiba commented 8 years ago

@davemackintosh It may be a svgexport issue, can I see your example?

davemackintosh commented 8 years ago

I'm using it in an electron app on OS X, it's reading from the "Application Support" directory but says it can't find "Application " so I tried .replace(/\s+/g, "\ ") but still no go.

shakiba commented 8 years ago

@davemackintosh Are you using svgexport as a node.js module? If so, please use arrays for output value, see here. I should add it to readme.

shakiba commented 8 years ago

@loominade I'm closing this issue, because it is a phantomjs issue. Hopefully in future versions of phantomjs it will be resolved.