save path not encoded
jsvisa opened this issue · 8 comments
Hey @jsvisa thanks for the issue! Can you paste the file path here (or at least the unencoded characters) and I will make sure we get this fixed.
@mfix22 is it possible that this is due to an issue with Unicode encoding here https://github.com/dawnlabs/photosorcery?
@ericadamski absolutely! Photosorcery is the CLI we use under the hood to do the conversions. If you have an idea of how to fix it I would happily accept a PR both repos 😄
After some investigation I can pretty well conclude that the issue is special characters in file names.
My test was to convert this: Screen\ Shot\ 2018-03-07\ at\ 7.21.37\ AM.webp
which failed where test.webp
was successful.
The best solution is to strip out all special characters in JS before it is fed to dawnlabs/photosorcery.
@ericadamski I just tried this locally using Screen\ Shot\ 2018-03-07\ at\ 7.21.37\ AM.png
and 的中文翻譯 | 英漢字典.png
, and both worked. Are you sure that is the file name you used to recreate the bug?
@mfix22 I was able to get photosocery to break with those paths, but I also could seem to get alchemy to recreate the bug.
I am wondering if it's an OS path issue. I have only tested this on MacOS
@ericadamski @mfix22 I'm using macOS too, but I'm sorry, I can't reproduce this issue any more after downloading the newest(1.8.7) Alchemy, (sorry, not remember the previous version)
@jsvisa no worries! Glad it now works for you!