From a570cde9faecc7359ba12ceed12c2cf035ccca20 Mon Sep 17 00:00:00 2001 From: laggykiller Date: Sun, 4 Feb 2024 19:50:13 +0800 Subject: [PATCH] Fix fps by duration for animated png --- src/sticker_convert/converter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sticker_convert/converter.py b/src/sticker_convert/converter.py index ef18730..2b1fac3 100755 --- a/src/sticker_convert/converter.py +++ b/src/sticker_convert/converter.py @@ -607,7 +607,7 @@ def fix_fps(self, fps: float) -> Fraction: # # For GIF, we need to adjust fps such that delay is matching to hundreths of second return self._fix_fps_duration(fps, 100) - elif self.out_f.suffix in ('.webp', '.apng'): + elif self.out_f.suffix in ('.webp', '.apng', '.png'): return self._fix_fps_duration(fps, 1000) else: return self._fix_fps_pyav(fps)