export_icons
export_icons copied to clipboard
Returned empty folders without any error
I am using this tool on mac using brew, tried to export logos, command ran successfully but returned empty folders
Same here
Looks like Inkscape is failing to find the input and output paths. The fix for me was fully specifying the paths in my command:
$ export_icons.sh -i ~/Downloads/my-icon.svg -o ~/Downloads/my_app_icons -vf
You can see what's happening if you see the output of the Inkscape command. To do this, remove the > /dev/null 2>&1
from line 96 of the script.
Yup, that was the quick fix! Thank @rdlugosz
Fix for me was to change line 96 to this:
${INKSCAPE} -C --export-filename="${output_file}" -w ${size} "${input_file}"
Also had to change line 32 to this:
INKSCAPE=/Applications/Inkscape.app/Contents/MacOS/inkscape
1.0rc1 (09960d6, 2020-04-09)