From ed4e34b808893fadbc50fe3114539a13c1181b16 Mon Sep 17 00:00:00 2001 From: Randall Lawrence Date: Wed, 25 Sep 2019 13:31:56 +0300 Subject: [PATCH] Changed to 30% frame in image convert --- mautrix_telegram/util/tgs_converter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mautrix_telegram/util/tgs_converter.py b/mautrix_telegram/util/tgs_converter.py index ad08ac3f..edacadbf 100644 --- a/mautrix_telegram/util/tgs_converter.py +++ b/mautrix_telegram/util/tgs_converter.py @@ -20,7 +20,7 @@ try: def _tgs_to_png(animation: Animation, width: int = None, height: int = None, frame: int = None) -> Tuple[bytes, Optional[bytes]]: if not frame: - frame = int(animation.out_point * 0.9) + frame = int(animation.out_point * 0.3) if not (width and height): width = animation.width height = animation.height