Webassembly ImageMagick & outputfilename in cmdline
Posted: 2018-07-13T00:19:44-07:00
I recompiled ImageMagick for WebAssembly, allowing it to run in your browser. You can see a sample cmdline project that uses it at https://knicknic.github.io/imagemagick
However I do not understand output filenames.
the command I was trying to run was (which you can experiment in the above sample url)
I tried to split a filename of abcdefghijklmn.jpg thinking this would generate abcdefghijklmn-0.jpg, abcdefghijklmn-1.jpg, ...
However I got file name abcdefgh0.jpg. This was unexpected for 2 reasons.
Lastly, any thoughts on client side ImageMagick using webassembly more info at https://github.com/KnicKnic/WASM-ImageMagick?
Thanks,
KnicKnic
However I do not understand output filenames.
the command I was trying to run was (which you can experiment in the above sample url)
Code: Select all
convert * -flatten -crop x20% +repage -quality 100 -scene 0 -set filename:mysize %t %[filename:mysize]-%d.jpeg
However I got file name abcdefgh0.jpg. This was unexpected for 2 reasons.
- 1. I did not abcdefghijklmn, but the shortened abcdefgh
- My guess is that in the browser it does not detect that it is capable of longer than 8 character file names. I was wondering does anyone know where the detection for what character support your file system has is?
- 2. I did not get '-'.
Lastly, any thoughts on client side ImageMagick using webassembly more info at https://github.com/KnicKnic/WASM-ImageMagick?
Thanks,
KnicKnic