Switched to puppeter-lottie npm library

This commit is contained in:
Randall Lawrence
2019-09-25 15:34:34 +03:00
parent ed4e34b808
commit 7d224ec5ac
3 changed files with 32 additions and 137 deletions
+3 -2
View File
@@ -49,7 +49,7 @@ try:
except ImportError:
VideoFileClip = random = string = os = mimetypes = None
from .tgs_converter import convert_tgs
from .tgs_converter import convert_tgs_to
log: logging.Logger = logging.getLogger("mau.util")
@@ -203,8 +203,9 @@ async def _unlocked_transfer_file_to_matrix(client: MautrixTelegramClient, inten
image_converted = False
if mime_type == "application/gzip" and is_sticker:
mime_type, file, width, height, thumbnail = convert_tgs(file, tgs_convert_type, 256, 256)
mime_type, file, width, height = convert_tgs_to(file, tgs_convert_type, 256, 256)
image_converted = width is not None
thumbnail = None
if mime_type == "image/webp":
new_mime_type, file, width, height = convert_image(