Fixed gif wallpapers! update generate_colors_material.py

Now you can set .gif file's as your wallpaper!
This commit is contained in:
Brave
2024-08-05 05:21:56 +03:00
committed by GitHub
parent 78f622963f
commit 1bb305d0b4
@@ -63,6 +63,10 @@ transparent = (args.transparency == 'transparent')
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: