diff options
author | Mattias Andrée <maandree@operamail.com> | 2015-04-04 03:32:05 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2015-04-04 03:32:05 +0200 |
commit | 217e6f9428f0119d00565a78a3501ee935563d55 (patch) | |
tree | 44ddffa11d9d59969c614ed59eeecb0cea180a0b /src | |
parent | image: select best of the best icons (diff) | |
download | xpybar-217e6f9428f0119d00565a78a3501ee935563d55.tar.gz xpybar-217e6f9428f0119d00565a78a3501ee935563d55.tar.bz2 xpybar-217e6f9428f0119d00565a78a3501ee935563d55.tar.xz |
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src')
-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'): |