summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2018-03-15 13:26:51 +1100
committerDylan Araps <dylan.araps@gmail.com>2018-03-15 13:26:51 +1100
commitda9226a8c402a67bd31fc647fe888bdea3109b1f (patch)
tree2ea658bba03717009645e61548097c0082053745
parent50e880f6d494092956611c31c1cbf78fb51e6b8c (diff)
image: Fix crash when using llight themes and gif images. Closes #196
-rw-r--r--pywal/colors.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pywal/colors.py b/pywal/colors.py
index 0fed29e..f47ac33 100644
--- a/pywal/colors.py
+++ b/pywal/colors.py
@@ -15,6 +15,7 @@ def imagemagick(color_count, img, magick_command):
"""Call Imagemagick to generate a scheme."""
flags = ["-resize", "25%", "-colors", str(color_count),
"-unique-colors", "txt:-"]
+ img += "[0]"
return subprocess.check_output([*magick_command, img, *flags]).splitlines()