From 217e6f9428f0119d00565a78a3501ee935563d55 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 4 Apr 2015 03:32:05 +0200 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/plugins/image.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/plugins/image.py') 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'): -- cgit v1.2.3-70-g09d2