color handling fix in imagetracer.js

This commit is contained in:
Mario Voigt 2021-05-15 20:15:58 +02:00
parent 066674b658
commit c20ff0335d
1 changed files with 3 additions and 0 deletions

View File

@ -97,6 +97,9 @@ class Imagetracerjs (inkex.EffectExtension):
exportfile = "imagetracerjs.png"
else:
exportfile ="/tmp/imagetracerjs.png"
if img.mode != 'RGB':
img = img.convert('RGB')
img.save(exportfile, "png")
nodeclipath = os.path.join("imagetracerjs-master", "nodecli", "nodecli.js")