mirror of
https://github.com/dylanaraps/pywal.git
synced 2025-05-30 06:28:53 +02:00
image: Fix crash when using llight themes and gif images. Closes #196
This commit is contained in:
parent
50e880f6d4
commit
da9226a8c4
@ -15,6 +15,7 @@ def imagemagick(color_count, img, magick_command):
|
|||||||
"""Call Imagemagick to generate a scheme."""
|
"""Call Imagemagick to generate a scheme."""
|
||||||
flags = ["-resize", "25%", "-colors", str(color_count),
|
flags = ["-resize", "25%", "-colors", str(color_count),
|
||||||
"-unique-colors", "txt:-"]
|
"-unique-colors", "txt:-"]
|
||||||
|
img += "[0]"
|
||||||
|
|
||||||
return subprocess.check_output([*magick_command, img, *flags]).splitlines()
|
return subprocess.check_output([*magick_command, img, *flags]).splitlines()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user