From da9226a8c402a67bd31fc647fe888bdea3109b1f Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Thu, 15 Mar 2018 13:26:51 +1100 Subject: [PATCH] image: Fix crash when using llight themes and gif images. Closes #196 --- pywal/colors.py | 1 + 1 file changed, 1 insertion(+) 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()