mirror of
https://github.com/danbulant/dots-hyprland
synced 2026-05-24 12:22:09 +00:00
Merge pull request #1 from braveltd/braveltd-gif-patch
Fixed gif wallpapers! update generate_colors_material.py
This commit is contained in:
commit
1b1cd69683
1 changed files with 4 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue