Merge pull request #1 from braveltd/braveltd-gif-patch

Fixed gif wallpapers! update generate_colors_material.py
This commit is contained in:
Brave 2024-08-05 05:22:21 +03:00 committed by GitHub
commit 1b1cd69683
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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: