Closed heyzec closed 3 years ago
Oops, I didn't realise all that created so many notifications. Anyways, the script should now be working, do take a look :D
Thank you! this is very useful.
I just noticed (a bit late :sweat_smile:) that the PNGs that were being produced were not correct (color and padding were not being applied) I tried it with both inkscape 1.0.2 and inkscape 0.92.3 with the same results.
I commented out the usage of inkscape_convert_svg2png
for now.
Hmm, that's odd. I tried a clean install on Ubuntu using both inkscape versions and it works for me. What's the output when you run the command which inkscape
?
~ $ which inkscape
/usr/bin/inkscape
~ $ inkscape --version
Inkscape 0.92.3 (2405546, 2018-03-11)
Maybe it is something with my setup, it seems that the temp.svg file is not getting the fill
nor the transform
properties written. I'll have a look at it later.
This is now working, solved in https://github.com/mateosss/matter/commit/3ab56e1540e4fe6112be4ff63d77f36d103b6b27
For some reason elements = root.findall(...)
was returning an empty list.
I'm using a distro derived from Ubuntu 18.04 and a
sudo apt install inkscape
gets youInkscape 0.92.3 (2405546, 2018-03-11)
which seems to not have the--export-filename
flag thus Matter is failing.This is the output I get, I added extra prints prefixed with
>>>
. I also removed the2>/dev/null
in the inkscapecmd
. is it too verbose if you don't silence inkscape stderr? it could be useful for future issues.