Support for GIF Wallpapers. (#727)

This commit is contained in:
end-4
2024-08-06 10:07:02 +07:00
committed by GitHub
@@ -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: