Skip to content

Commit

Permalink
Support for GIF Wallpapers. (end-4#727)
Browse files Browse the repository at this point in the history
  • Loading branch information
end-4 authored Aug 6, 2024
2 parents 78f6229 + 1b1cd69 commit 8e3e0ac
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 8e3e0ac

Please sign in to comment.