color handling fix in primitive

This commit is contained in:
Mario Voigt 2021-05-15 20:13:31 +02:00
parent 61797ef005
commit 066674b658

View File

@ -96,6 +96,8 @@ class Primitive (inkex.EffectExtension):
else:
exportfile = "/tmp/Primitive.png"
if image.mode != 'RGB':
image = image.convert('RGB')
image.save(exportfile, "png")
## Build up Primitive command according to your settings from extension GUI