diff options
Diffstat (limited to 'src/plugins/image.py')
-rw-r--r-- | src/plugins/image.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/image.py b/src/plugins/image.py index b87703e..ccb8b29 100644 --- a/src/plugins/image.py +++ b/src/plugins/image.py @@ -55,6 +55,8 @@ class Image: if file is None: raise Exception('No icon found') + # ImageMagick (and GraphicsMagick) forces white background when converting SVG images + # so we need to sue rsvg-convert if we encounter an SVG image. convert = ['file', '-'] convert = Popen(convert, stdin = open(file, 'rb'), stdout = PIPE, stderr = sys.stderr) if 'Scalable Vector Graphics' in convert.communicate()[0].decode('utf-8', 'replace'): |