sticker-convert 2.13.2.1__tar.gz → 2.13.2.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {sticker_convert-2.13.2.1/src/sticker_convert.egg-info → sticker_convert-2.13.2.2}/PKG-INFO +1 -1
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/converter.py +4 -4
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/downloaders/download_line.py +4 -4
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/uploaders/upload_telegram.py +22 -13
- sticker_convert-2.13.2.2/src/sticker_convert/version.py +3 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2/src/sticker_convert.egg-info}/PKG-INFO +1 -1
- sticker_convert-2.13.2.1/src/sticker_convert/version.py +0 -3
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/LICENSE +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/MANIFEST.in +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/README.md +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/pyproject.toml +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/requirements.txt +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/setup.cfg +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/__init__.py +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/__main__.py +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/cli.py +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/definitions.py +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/downloaders/__init__.py +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/downloaders/download_band.py +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/downloaders/download_base.py +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/downloaders/download_discord.py +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/downloaders/download_kakao.py +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/downloaders/download_ogq.py +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/downloaders/download_signal.py +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/downloaders/download_telegram.py +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/downloaders/download_viber.py +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/gui.py +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/gui_components/__init__.py +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/gui_components/frames/__init__.py +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/gui_components/frames/comp_frame.py +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/gui_components/frames/config_frame.py +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/gui_components/frames/control_frame.py +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/gui_components/frames/cred_frame.py +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/gui_components/frames/input_frame.py +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/gui_components/frames/output_frame.py +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/gui_components/frames/progress_frame.py +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/gui_components/frames/right_clicker.py +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/gui_components/gui_utils.py +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/gui_components/windows/__init__.py +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/gui_components/windows/advanced_compression_window.py +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/gui_components/windows/base_window.py +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/gui_components/windows/discord_get_auth_window.py +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/gui_components/windows/kakao_get_auth_window.py +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/gui_components/windows/line_get_auth_window.py +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/gui_components/windows/signal_get_auth_window.py +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/gui_components/windows/viber_get_auth_window.py +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/ios-message-stickers-template/.github/FUNDING.yml +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/ios-message-stickers-template/.gitignore +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/ios-message-stickers-template/README.md +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/ios-message-stickers-template/stickers/Info.plist +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Info.plist +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/Contents.json +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/Sticker Pack.stickerpack/Contents.json +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/Sticker Pack.stickerpack/Sticker 1.sticker/Contents.json +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/Sticker Pack.stickerpack/Sticker 1.sticker/Sticker 1.png +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/Sticker Pack.stickerpack/Sticker 2.sticker/Contents.json +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/Sticker Pack.stickerpack/Sticker 2.sticker/Sticker 2.png +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/Sticker Pack.stickerpack/Sticker 3.sticker/Contents.json +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/Sticker Pack.stickerpack/Sticker 3.sticker/Sticker 3.png +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/iMessage App Icon.stickersiconset/App-Store-1024x1024pt.png +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/iMessage App Icon.stickersiconset/Contents.json +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/iMessage App Icon.stickersiconset/Messages-App-Store-1024x768pt.png +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/iMessage App Icon.stickersiconset/Messages-iPad-67x50pt@2x.png +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/iMessage App Icon.stickersiconset/Messages-iPad-Pro-74x55pt@2x.png +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/iMessage App Icon.stickersiconset/Messages-iPhone-60x45pt@2x.png +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/iMessage App Icon.stickersiconset/Messages-iPhone-60x45pt@3x.png +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/iMessage App Icon.stickersiconset/Messages27x20pt@2x.png +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/iMessage App Icon.stickersiconset/Messages27x20pt@3x.png +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/iMessage App Icon.stickersiconset/Messages32x24pt@2x.png +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/iMessage App Icon.stickersiconset/Messages32x24pt@3x.png +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/iMessage App Icon.stickersiconset/iPad-Settings-29pt@2x.png +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/iMessage App Icon.stickersiconset/iPhone-Settings-29pt@3x.png +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/iMessage App Icon.stickersiconset/iPhone-settings-29pt@2x.png +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/ios-message-stickers-template/stickers.xcodeproj/project.pbxproj +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/ios-message-stickers-template/stickers.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/ios-message-stickers-template/stickers.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/ios-message-stickers-template/stickers.xcodeproj/project.xcworkspace/xcuserdata/niklaspeterson.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/ios-message-stickers-template/stickers.xcodeproj/xcuserdata/niklaspeterson.xcuserdatad/xcschemes/xcschememanagement.plist +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/job.py +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/job_option.py +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/resources/NotoColorEmoji.ttf +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/resources/appicon.icns +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/resources/appicon.ico +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/resources/appicon.png +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/resources/compression.json +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/resources/emoji.json +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/resources/help.json +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/resources/input.json +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/resources/memdump_linux.sh +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/resources/memdump_windows.ps1 +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/resources/output.json +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/uploaders/__init__.py +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/uploaders/compress_wastickers.py +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/uploaders/upload_base.py +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/uploaders/upload_signal.py +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/uploaders/upload_viber.py +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/uploaders/xcode_imessage.py +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/utils/auth/get_discord_auth.py +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/utils/auth/get_kakao_auth.py +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/utils/auth/get_kakao_desktop_auth.py +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/utils/auth/get_line_auth.py +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/utils/auth/get_signal_auth.py +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/utils/auth/get_viber_auth.py +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/utils/auth/telegram_api.py +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/utils/auth/telethon_setup.py +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/utils/callback.py +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/utils/chrome_remotedebug.py +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/utils/chromiums/linux.py +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/utils/chromiums/osx.py +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/utils/chromiums/windows.py +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/utils/emoji.py +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/utils/files/cache_store.py +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/utils/files/json_manager.py +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/utils/files/json_resources_loader.py +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/utils/files/metadata_handler.py +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/utils/files/run_bin.py +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/utils/files/sanitize_filename.py +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/utils/media/apple_png_normalize.py +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/utils/media/codec_info.py +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/utils/media/decrypt_kakao.py +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/utils/media/format_verify.py +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/utils/process.py +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/utils/singletons.py +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/utils/url_detect.py +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert.egg-info/SOURCES.txt +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert.egg-info/dependency_links.txt +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert.egg-info/entry_points.txt +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert.egg-info/requires.txt +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert.egg-info/top_level.txt +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/tests/test_compression.py +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/tests/test_download.py +0 -0
- {sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/tests/test_export.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: sticker-convert
|
3
|
-
Version: 2.13.2.
|
3
|
+
Version: 2.13.2.2
|
4
4
|
Summary: Convert (animated) stickers to/from WhatsApp, Telegram, Signal, Line, Kakao, Viber, Discord, iMessage. Written in Python.
|
5
5
|
Author-email: laggykiller <chaudominic2@gmail.com>
|
6
6
|
Maintainer-email: laggykiller <chaudominic2@gmail.com>
|
@@ -597,12 +597,12 @@ class StickerConvert:
|
|
597
597
|
else:
|
598
598
|
frame_resized = frame
|
599
599
|
|
600
|
-
# yuva420p may cause crash
|
600
|
+
# yuva420p may cause crash
|
601
601
|
# Not safe to directly call frame.to_ndarray(format="rgba")
|
602
602
|
# https://github.com/PyAV-Org/PyAV/discussions/1510
|
603
|
-
if int(av.__version__.split(".")[0]) >= 14:
|
604
|
-
|
605
|
-
|
603
|
+
# if int(av.__version__.split(".")[0]) >= 14:
|
604
|
+
# rgba_array = frame_resized.to_ndarray(format="rgba")
|
605
|
+
if frame_resized.format.name == "yuv420p":
|
606
606
|
rgb_array = frame_resized.to_ndarray(format="rgb24")
|
607
607
|
rgba_array = np.dstack(
|
608
608
|
(
|
@@ -252,7 +252,7 @@ class DownloadLine(DownloadBase):
|
|
252
252
|
)
|
253
253
|
|
254
254
|
for num, sticker in enumerate(self.pack_files):
|
255
|
-
if self.
|
255
|
+
if self.has_animation is True:
|
256
256
|
f_path = str(sticker) + "_animation.png"
|
257
257
|
else:
|
258
258
|
f_path = str(sticker) + ".png"
|
@@ -273,13 +273,13 @@ class DownloadLine(DownloadBase):
|
|
273
273
|
)
|
274
274
|
|
275
275
|
for num, sticker in enumerate(self.pack_files):
|
276
|
-
if self.resource_type
|
277
|
-
f_path = "animation@2x/" + str(sticker["id"]) + "@2x.png"
|
278
|
-
elif self.resource_type == "POPUP":
|
276
|
+
if self.resource_type == "POPUP":
|
279
277
|
if sticker.get("popup", {}).get("layer") == "BACKGROUND":
|
280
278
|
f_path = str(sticker["id"]) + "@2x.png"
|
281
279
|
self.decompress(zf, f_path, num, "preview-")
|
282
280
|
f_path = "popup/" + str(sticker["id"]) + ".png"
|
281
|
+
elif self.has_animation is True:
|
282
|
+
f_path = "animation@2x/" + str(sticker["id"]) + "@2x.png"
|
283
283
|
else:
|
284
284
|
f_path = str(sticker["id"]) + "@2x.png"
|
285
285
|
self.decompress(zf, f_path, num)
|
@@ -165,22 +165,32 @@ class UploadTelegram(UploadBase):
|
|
165
165
|
src, fmt=spec_choice.get_format(), file_info=file_info
|
166
166
|
)
|
167
167
|
)
|
168
|
-
if
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
168
|
+
if self.opt_output.option == "telegram":
|
169
|
+
if sticker_format == "animated":
|
170
|
+
check_file_result = (
|
171
|
+
check_file_result
|
172
|
+
and file_info.res[0] == 512
|
173
|
+
and file_info.res[1] == 512
|
174
|
+
)
|
175
|
+
else:
|
176
|
+
# For video and static stickers (Not animated)
|
177
|
+
# Allow file with one of the dimension = 512 but another <512
|
178
|
+
# https://core.telegram.org/stickers#video-requirements
|
179
|
+
check_file_result = check_file_result and (
|
180
|
+
file_info.res[0] == 512 or file_info.res[1] == 512
|
181
|
+
)
|
182
|
+
check_file_result = check_file_result and (
|
183
|
+
file_info.res[0] <= 512 and file_info.res[1] <= 512
|
184
|
+
)
|
178
185
|
else:
|
186
|
+
# telegram_emoji
|
179
187
|
check_file_result = (
|
180
188
|
check_file_result
|
181
|
-
and file_info.res[0] ==
|
182
|
-
and file_info.res[1] ==
|
189
|
+
and file_info.res[0] == 100
|
190
|
+
and file_info.res[1] == 100
|
183
191
|
)
|
192
|
+
|
193
|
+
if sticker_format == "static":
|
184
194
|
# It is important to check if webp and png are static only
|
185
195
|
check_file_result = check_file_result and FormatVerify.check_animated(
|
186
196
|
src, animated=spec_choice.animated, file_info=file_info
|
@@ -298,7 +308,6 @@ class UploadTelegram(UploadBase):
|
|
298
308
|
stickers_total = 0
|
299
309
|
stickers_ok = 0
|
300
310
|
for pack_title, stickers in packs.items():
|
301
|
-
stickers_total += len(stickers)
|
302
311
|
self.cb.put(f"Uploading pack {pack_title}")
|
303
312
|
result, stickers_total_pack, stickers_ok_pack = anyio.run(
|
304
313
|
self.upload_pack, pack_title, stickers, emoji_dict
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: sticker-convert
|
3
|
-
Version: 2.13.2.
|
3
|
+
Version: 2.13.2.2
|
4
4
|
Summary: Convert (animated) stickers to/from WhatsApp, Telegram, Signal, Line, Kakao, Viber, Discord, iMessage. Written in Python.
|
5
5
|
Author-email: laggykiller <chaudominic2@gmail.com>
|
6
6
|
Maintainer-email: laggykiller <chaudominic2@gmail.com>
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/downloaders/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/gui_components/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/resources/appicon.icns
RENAMED
File without changes
|
{sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/resources/appicon.ico
RENAMED
File without changes
|
{sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/resources/appicon.png
RENAMED
File without changes
|
{sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/resources/compression.json
RENAMED
File without changes
|
{sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/resources/emoji.json
RENAMED
File without changes
|
{sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/resources/help.json
RENAMED
File without changes
|
{sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/resources/input.json
RENAMED
File without changes
|
{sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/resources/memdump_linux.sh
RENAMED
File without changes
|
File without changes
|
{sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/resources/output.json
RENAMED
File without changes
|
{sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/uploaders/__init__.py
RENAMED
File without changes
|
File without changes
|
{sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/uploaders/upload_base.py
RENAMED
File without changes
|
{sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/uploaders/upload_signal.py
RENAMED
File without changes
|
{sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/uploaders/upload_viber.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/utils/auth/telegram_api.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/utils/chromiums/linux.py
RENAMED
File without changes
|
{sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/utils/chromiums/osx.py
RENAMED
File without changes
|
{sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/utils/chromiums/windows.py
RENAMED
File without changes
|
File without changes
|
{sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/utils/files/cache_store.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/utils/files/run_bin.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/utils/media/codec_info.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/utils/singletons.py
RENAMED
File without changes
|
{sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert/utils/url_detect.py
RENAMED
File without changes
|
{sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert.egg-info/SOURCES.txt
RENAMED
File without changes
|
File without changes
|
{sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert.egg-info/entry_points.txt
RENAMED
File without changes
|
{sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert.egg-info/requires.txt
RENAMED
File without changes
|
{sticker_convert-2.13.2.1 → sticker_convert-2.13.2.2}/src/sticker_convert.egg-info/top_level.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|