Skip to content

Commit

Permalink
Fixed gif wallpapers! update generate_colors_material.py
Browse files Browse the repository at this point in the history
Now you can set .gif file's as your wallpaper!
  • Loading branch information
braveltd authored Aug 5, 2024
1 parent 78f6229 commit 1bb305d
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ def boost_chroma_tone (argb: int, chroma: float = 1, tone: float = 1) -> int:

if args.path is not None:
image = Image.open(args.path)

if image.format == "GIF":
image.seek(1)

wsize, hsize = image.size
wsize_new, hsize_new = calculate_optimal_size(wsize, hsize, args.size)
if wsize_new < wsize or hsize_new < hsize:
Expand Down

0 comments on commit 1bb305d

Please sign in to comment.