sticker-convert 2.10.6__tar.gz → 2.10.8__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {sticker_convert-2.10.6/src/sticker_convert.egg-info → sticker_convert-2.10.8}/PKG-INFO +6 -6
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/requirements.txt +5 -5
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/converter.py +4 -4
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/job_option.py +0 -2
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/uploaders/compress_wastickers.py +0 -1
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/uploaders/upload_signal.py +0 -1
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/uploaders/upload_telegram.py +21 -28
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/uploaders/upload_viber.py +0 -1
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/uploaders/xcode_imessage.py +0 -1
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/utils/media/format_verify.py +23 -6
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/version.py +1 -1
- {sticker_convert-2.10.6 → sticker_convert-2.10.8/src/sticker_convert.egg-info}/PKG-INFO +6 -6
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert.egg-info/requires.txt +5 -5
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/LICENSE +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/MANIFEST.in +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/README.md +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/pyproject.toml +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/setup.cfg +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/__init__.py +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/__main__.py +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/cli.py +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/definitions.py +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/downloaders/__init__.py +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/downloaders/download_base.py +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/downloaders/download_discord.py +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/downloaders/download_kakao.py +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/downloaders/download_line.py +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/downloaders/download_signal.py +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/downloaders/download_telegram.py +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/downloaders/download_viber.py +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/gui.py +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/gui_components/__init__.py +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/gui_components/frames/__init__.py +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/gui_components/frames/comp_frame.py +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/gui_components/frames/config_frame.py +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/gui_components/frames/control_frame.py +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/gui_components/frames/cred_frame.py +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/gui_components/frames/input_frame.py +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/gui_components/frames/output_frame.py +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/gui_components/frames/progress_frame.py +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/gui_components/frames/right_clicker.py +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/gui_components/gui_utils.py +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/gui_components/windows/__init__.py +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/gui_components/windows/advanced_compression_window.py +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/gui_components/windows/base_window.py +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/gui_components/windows/discord_get_auth_window.py +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/gui_components/windows/kakao_get_auth_window.py +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/gui_components/windows/line_get_auth_window.py +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/gui_components/windows/signal_get_auth_window.py +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/gui_components/windows/viber_get_auth_window.py +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/ios-message-stickers-template/.github/FUNDING.yml +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/ios-message-stickers-template/.gitignore +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/ios-message-stickers-template/README.md +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/ios-message-stickers-template/stickers/Info.plist +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Info.plist +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/Contents.json +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/Sticker Pack.stickerpack/Contents.json +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/Sticker Pack.stickerpack/Sticker 1.sticker/Contents.json +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/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.10.6 → sticker_convert-2.10.8}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/Sticker Pack.stickerpack/Sticker 2.sticker/Contents.json +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/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.10.6 → sticker_convert-2.10.8}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/Sticker Pack.stickerpack/Sticker 3.sticker/Contents.json +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/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.10.6 → sticker_convert-2.10.8}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/iMessage App Icon.stickersiconset/App-Store-1024x1024pt.png +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/iMessage App Icon.stickersiconset/Contents.json +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/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.10.6 → sticker_convert-2.10.8}/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.10.6 → sticker_convert-2.10.8}/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.10.6 → sticker_convert-2.10.8}/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.10.6 → sticker_convert-2.10.8}/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.10.6 → sticker_convert-2.10.8}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/iMessage App Icon.stickersiconset/Messages27x20pt@2x.png +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/iMessage App Icon.stickersiconset/Messages27x20pt@3x.png +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/iMessage App Icon.stickersiconset/Messages32x24pt@2x.png +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/iMessage App Icon.stickersiconset/Messages32x24pt@3x.png +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/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.10.6 → sticker_convert-2.10.8}/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.10.6 → sticker_convert-2.10.8}/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.10.6 → sticker_convert-2.10.8}/src/sticker_convert/ios-message-stickers-template/stickers.xcodeproj/project.pbxproj +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/ios-message-stickers-template/stickers.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/ios-message-stickers-template/stickers.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/ios-message-stickers-template/stickers.xcodeproj/project.xcworkspace/xcuserdata/niklaspeterson.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/ios-message-stickers-template/stickers.xcodeproj/xcuserdata/niklaspeterson.xcuserdatad/xcschemes/xcschememanagement.plist +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/job.py +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/resources/NotoColorEmoji.ttf +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/resources/appicon.icns +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/resources/appicon.ico +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/resources/appicon.png +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/resources/compression.json +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/resources/emoji.json +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/resources/help.json +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/resources/input.json +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/resources/memdump_linux.sh +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/resources/memdump_windows.ps1 +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/resources/output.json +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/uploaders/__init__.py +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/uploaders/upload_base.py +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/utils/auth/get_discord_auth.py +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/utils/auth/get_kakao_auth.py +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/utils/auth/get_kakao_desktop_auth.py +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/utils/auth/get_line_auth.py +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/utils/auth/get_signal_auth.py +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/utils/auth/get_viber_auth.py +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/utils/callback.py +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/utils/chrome_remotedebug.py +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/utils/emoji.py +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/utils/files/cache_store.py +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/utils/files/json_manager.py +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/utils/files/json_resources_loader.py +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/utils/files/metadata_handler.py +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/utils/files/run_bin.py +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/utils/files/sanitize_filename.py +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/utils/media/apple_png_normalize.py +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/utils/media/codec_info.py +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/utils/media/decrypt_kakao.py +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/utils/process.py +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/utils/url_detect.py +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert.egg-info/SOURCES.txt +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert.egg-info/dependency_links.txt +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert.egg-info/entry_points.txt +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert.egg-info/top_level.txt +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/tests/test_compression.py +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/tests/test_download.py +0 -0
- {sticker_convert-2.10.6 → sticker_convert-2.10.8}/tests/test_export.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: sticker-convert
|
3
|
-
Version: 2.10.
|
3
|
+
Version: 2.10.8
|
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>
|
@@ -363,27 +363,27 @@ Classifier: Programming Language :: Python :: 3 :: Only
|
|
363
363
|
Requires-Python: >=3.9
|
364
364
|
Description-Content-Type: text/markdown
|
365
365
|
License-File: LICENSE
|
366
|
-
Requires-Dist: aiolimiter~=1.
|
366
|
+
Requires-Dist: aiolimiter~=1.2.0
|
367
367
|
Requires-Dist: anyio~=4.6.2.post1
|
368
368
|
Requires-Dist: apngasm_python~=1.3.1
|
369
369
|
Requires-Dist: av~=13.1.0
|
370
370
|
Requires-Dist: beautifulsoup4~=4.12.3
|
371
371
|
Requires-Dist: rookiepy~=0.5.6
|
372
|
-
Requires-Dist: httpx~=0.
|
373
|
-
Requires-Dist: imagequant~=1.1.
|
372
|
+
Requires-Dist: httpx~=0.28.0
|
373
|
+
Requires-Dist: imagequant~=1.1.3
|
374
374
|
Requires-Dist: memory-tempfile~=2.2.3
|
375
375
|
Requires-Dist: mergedeep~=1.3.4
|
376
376
|
Requires-Dist: mini-racer~=0.12.4
|
377
377
|
Requires-Dist: numpy>=1.22.4
|
378
378
|
Requires-Dist: Pillow~=11.0.0
|
379
379
|
Requires-Dist: pyoxipng~=9.0.0
|
380
|
-
Requires-Dist: python-telegram-bot~=21.
|
380
|
+
Requires-Dist: python-telegram-bot~=21.8
|
381
381
|
Requires-Dist: psutil~=6.1.0
|
382
382
|
Requires-Dist: PyMemoryEditor~=1.5.22
|
383
383
|
Requires-Dist: requests~=2.32.3
|
384
384
|
Requires-Dist: rlottie_python~=1.3.6
|
385
385
|
Requires-Dist: signalstickers-client-fork-laggykiller~=3.3.0.post2
|
386
|
-
Requires-Dist: tqdm~=4.67.
|
386
|
+
Requires-Dist: tqdm~=4.67.1
|
387
387
|
Requires-Dist: ttkbootstrap-fork-laggykiller~=1.5.1
|
388
388
|
Requires-Dist: websocket_client~=1.8.0
|
389
389
|
|
@@ -1,23 +1,23 @@
|
|
1
|
-
aiolimiter~=1.
|
1
|
+
aiolimiter~=1.2.0
|
2
2
|
anyio~=4.6.2.post1
|
3
3
|
apngasm_python~=1.3.1
|
4
4
|
av~=13.1.0
|
5
5
|
beautifulsoup4~=4.12.3
|
6
6
|
rookiepy~=0.5.6
|
7
|
-
httpx~=0.
|
8
|
-
imagequant~=1.1.
|
7
|
+
httpx~=0.28.0
|
8
|
+
imagequant~=1.1.3
|
9
9
|
memory-tempfile~=2.2.3
|
10
10
|
mergedeep~=1.3.4
|
11
11
|
mini-racer~=0.12.4
|
12
12
|
numpy>=1.22.4
|
13
13
|
Pillow~=11.0.0
|
14
14
|
pyoxipng~=9.0.0
|
15
|
-
python-telegram-bot~=21.
|
15
|
+
python-telegram-bot~=21.8
|
16
16
|
psutil~=6.1.0
|
17
17
|
PyMemoryEditor~=1.5.22
|
18
18
|
requests~=2.32.3
|
19
19
|
rlottie_python~=1.3.6
|
20
20
|
signalstickers-client-fork-laggykiller~=3.3.0.post2
|
21
|
-
tqdm~=4.67.
|
21
|
+
tqdm~=4.67.1
|
22
22
|
ttkbootstrap-fork-laggykiller~=1.5.1
|
23
23
|
websocket_client~=1.8.0
|
@@ -535,7 +535,7 @@ class StickerConvert:
|
|
535
535
|
rgba_array = yuva_to_rgba(frame_resized)
|
536
536
|
|
537
537
|
# Remove pixels that was added to make dimensions even
|
538
|
-
rgba_array = rgba_array[0:
|
538
|
+
rgba_array = rgba_array[0:height_orig, 0:width_orig]
|
539
539
|
self.frames_raw.append(rgba_array)
|
540
540
|
|
541
541
|
def _frames_import_lottie(self) -> None:
|
@@ -622,12 +622,12 @@ class StickerConvert:
|
|
622
622
|
self.res_h = height
|
623
623
|
|
624
624
|
scaling = 1 - (self.opt_comp.padding_percent / 100)
|
625
|
-
if width > height:
|
625
|
+
if width / self.res_w > height / self.res_h:
|
626
626
|
width_new = int(self.res_w * scaling)
|
627
|
-
height_new = int(height * self.res_w
|
627
|
+
height_new = int(height * self.res_w / width * scaling)
|
628
628
|
else:
|
629
629
|
height_new = int(self.res_h * scaling)
|
630
|
-
width_new = int(width * self.res_h
|
630
|
+
width_new = int(width * self.res_h / height * scaling)
|
631
631
|
|
632
632
|
with im.resize((width_new, height_new), resample=resample) as im_resized:
|
633
633
|
with Image.new(
|
@@ -80,7 +80,6 @@ class CompOption(BaseOption):
|
|
80
80
|
no_compress: Optional[bool] = None
|
81
81
|
processes: int = ceil(cpu_count() / 2)
|
82
82
|
animated: Optional[bool] = None
|
83
|
-
square: Optional[bool] = None
|
84
83
|
|
85
84
|
def to_dict(self) -> Dict[Any, Any]:
|
86
85
|
return {
|
@@ -115,7 +114,6 @@ class CompOption(BaseOption):
|
|
115
114
|
"no_compress": self.no_compress,
|
116
115
|
"processes": self.processes,
|
117
116
|
"animated": self.animated,
|
118
|
-
"square": self.square,
|
119
117
|
}
|
120
118
|
|
121
119
|
def get_size_max(self) -> Tuple[Optional[int], Optional[int]]:
|
{sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/uploaders/upload_signal.py
RENAMED
@@ -25,7 +25,6 @@ class UploadSignal(UploadBase):
|
|
25
25
|
self.base_spec.set_size_max(300000)
|
26
26
|
self.base_spec.set_res_max(512)
|
27
27
|
self.base_spec.duration_max = 3000
|
28
|
-
self.base_spec.square = True
|
29
28
|
|
30
29
|
self.png_spec = copy.deepcopy(self.base_spec)
|
31
30
|
self.png_spec.set_format((".apng",))
|
{sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/uploaders/upload_telegram.py
RENAMED
@@ -24,7 +24,6 @@ class UploadTelegram(UploadBase):
|
|
24
24
|
|
25
25
|
self.base_spec.size_max_img = 512000
|
26
26
|
self.base_spec.size_max_vid = 256000
|
27
|
-
self.base_spec.square = True
|
28
27
|
self.base_spec.duration_max = 3000
|
29
28
|
self.base_spec.set_res(512)
|
30
29
|
|
@@ -48,7 +47,7 @@ class UploadTelegram(UploadBase):
|
|
48
47
|
self.opt_comp_merged.merge(self.base_spec)
|
49
48
|
|
50
49
|
base_cover_spec = CompOption(
|
51
|
-
size_max_img=128000, size_max_vid=32000,
|
50
|
+
size_max_img=128000, size_max_vid=32000, duration_max=3000
|
52
51
|
)
|
53
52
|
base_cover_spec.set_res(100)
|
54
53
|
|
@@ -155,8 +154,7 @@ class UploadTelegram(UploadBase):
|
|
155
154
|
|
156
155
|
init_input_stickers: List[InputSticker] = []
|
157
156
|
sticker_format = None
|
158
|
-
|
159
|
-
for count, src in enumerate(stickers):
|
157
|
+
for src in stickers:
|
160
158
|
self.cb.put(f"Verifying {src} for uploading to telegram")
|
161
159
|
|
162
160
|
emoji = extract_emojis(emoji_dict.get(Path(src).stem, ""))
|
@@ -207,29 +205,7 @@ class UploadTelegram(UploadBase):
|
|
207
205
|
)
|
208
206
|
|
209
207
|
if sticker_set is None:
|
210
|
-
|
211
|
-
sticker_format_prev is None
|
212
|
-
or sticker_format_prev == sticker_format
|
213
|
-
):
|
214
|
-
init_input_stickers.append(input_sticker)
|
215
|
-
else:
|
216
|
-
start_msg = f"Creating pack and bulk uploading {count} stickers with same format of {pack_short_name}"
|
217
|
-
finish_msg = f"Created pack and bulk uploaded {count} stickers with same format of {pack_short_name}"
|
218
|
-
error_msg = f"Cannot create pack and bulk upload {count} stickers with same format of {pack_short_name} due to"
|
219
|
-
self.cb.put(start_msg)
|
220
|
-
try:
|
221
|
-
await bot.create_new_sticker_set(
|
222
|
-
user_id=self.telegram_userid,
|
223
|
-
name=pack_short_name,
|
224
|
-
title=pack_title,
|
225
|
-
stickers=init_input_stickers,
|
226
|
-
sticker_type=sticker_type,
|
227
|
-
)
|
228
|
-
sticker_set = True
|
229
|
-
self.cb.put(finish_msg)
|
230
|
-
except TelegramError as e:
|
231
|
-
self.cb.put(f"{error_msg} {e}")
|
232
|
-
return None
|
208
|
+
init_input_stickers.append(input_sticker)
|
233
209
|
else:
|
234
210
|
try:
|
235
211
|
# We could use tg.start_soon() here
|
@@ -253,7 +229,24 @@ class UploadTelegram(UploadBase):
|
|
253
229
|
f"Cannot upload sticker {src} of {pack_short_name} due to {e}"
|
254
230
|
)
|
255
231
|
|
256
|
-
|
232
|
+
if sticker_set is None and len(init_input_stickers) > 0:
|
233
|
+
start_msg = f"Creating pack and bulk uploading {len(init_input_stickers)} stickers with same format of {pack_short_name}"
|
234
|
+
finish_msg = f"Created pack and bulk uploaded {len(init_input_stickers)} stickers with same format of {pack_short_name}"
|
235
|
+
error_msg = f"Cannot create pack and bulk upload {len(init_input_stickers)} stickers with same format of {pack_short_name} due to"
|
236
|
+
self.cb.put(start_msg)
|
237
|
+
try:
|
238
|
+
await bot.create_new_sticker_set(
|
239
|
+
user_id=self.telegram_userid,
|
240
|
+
name=pack_short_name,
|
241
|
+
title=pack_title,
|
242
|
+
stickers=init_input_stickers,
|
243
|
+
sticker_type=sticker_type,
|
244
|
+
)
|
245
|
+
sticker_set = True
|
246
|
+
self.cb.put(finish_msg)
|
247
|
+
except TelegramError as e:
|
248
|
+
self.cb.put(f"{error_msg} {e}")
|
249
|
+
return None
|
257
250
|
|
258
251
|
cover_path = MetadataHandler.get_cover(self.opt_output.dir)
|
259
252
|
if cover_path:
|
{sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/uploaders/xcode_imessage.py
RENAMED
@@ -25,7 +25,6 @@ class XcodeImessage(UploadBase):
|
|
25
25
|
self.base_spec.set_size_max(500000)
|
26
26
|
self.base_spec.set_res(300)
|
27
27
|
self.base_spec.set_format(("png", ".apng", ".gif", ".jpeg", "jpg"))
|
28
|
-
self.base_spec.square = True
|
29
28
|
|
30
29
|
self.small_spec = copy.deepcopy(self.base_spec)
|
31
30
|
|
{sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/utils/media/format_verify.py
RENAMED
@@ -1,5 +1,6 @@
|
|
1
1
|
#!/usr/bin/env python3
|
2
2
|
import os
|
3
|
+
from fractions import Fraction
|
3
4
|
from pathlib import Path
|
4
5
|
from typing import Optional, Tuple, Union
|
5
6
|
|
@@ -16,9 +17,7 @@ class FormatVerify:
|
|
16
17
|
file_info = CodecInfo(file)
|
17
18
|
|
18
19
|
return (
|
19
|
-
FormatVerify.check_file_res(
|
20
|
-
file, res=spec.get_res(), square=spec.square, file_info=file_info
|
21
|
-
)
|
20
|
+
FormatVerify.check_file_res(file, res=spec.get_res(), file_info=file_info)
|
22
21
|
and FormatVerify.check_file_fps(
|
23
22
|
file, fps=spec.get_fps(), file_info=file_info
|
24
23
|
)
|
@@ -48,7 +47,6 @@ class FormatVerify:
|
|
48
47
|
res: Tuple[
|
49
48
|
Tuple[Optional[int], Optional[int]], Tuple[Optional[int], Optional[int]]
|
50
49
|
],
|
51
|
-
square: Optional[bool] = None,
|
52
50
|
file_info: Optional[CodecInfo] = None,
|
53
51
|
) -> bool:
|
54
52
|
if file_info:
|
@@ -65,8 +63,27 @@ class FormatVerify:
|
|
65
63
|
return False
|
66
64
|
if res[1][1] and file_height > res[1][1]:
|
67
65
|
return False
|
68
|
-
|
69
|
-
|
66
|
+
|
67
|
+
min_ratio = None
|
68
|
+
if res[0][0] and res[1][0]:
|
69
|
+
min_ratio = Fraction(res[0][0], res[1][0])
|
70
|
+
|
71
|
+
max_ratio = None
|
72
|
+
if res[0][1] and res[1][1]:
|
73
|
+
max_ratio = Fraction(res[0][1], res[1][1])
|
74
|
+
|
75
|
+
file_ratio = Fraction(file_width, file_height)
|
76
|
+
|
77
|
+
if min_ratio is not None and max_ratio is not None:
|
78
|
+
if min_ratio == max_ratio:
|
79
|
+
return True if file_ratio == min_ratio else False
|
80
|
+
else:
|
81
|
+
return True
|
82
|
+
|
83
|
+
if min_ratio is not None:
|
84
|
+
return True if file_ratio == min_ratio else False
|
85
|
+
if max_ratio is not None:
|
86
|
+
return True if file_ratio == max_ratio else False
|
70
87
|
|
71
88
|
return True
|
72
89
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: sticker-convert
|
3
|
-
Version: 2.10.
|
3
|
+
Version: 2.10.8
|
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>
|
@@ -363,27 +363,27 @@ Classifier: Programming Language :: Python :: 3 :: Only
|
|
363
363
|
Requires-Python: >=3.9
|
364
364
|
Description-Content-Type: text/markdown
|
365
365
|
License-File: LICENSE
|
366
|
-
Requires-Dist: aiolimiter~=1.
|
366
|
+
Requires-Dist: aiolimiter~=1.2.0
|
367
367
|
Requires-Dist: anyio~=4.6.2.post1
|
368
368
|
Requires-Dist: apngasm_python~=1.3.1
|
369
369
|
Requires-Dist: av~=13.1.0
|
370
370
|
Requires-Dist: beautifulsoup4~=4.12.3
|
371
371
|
Requires-Dist: rookiepy~=0.5.6
|
372
|
-
Requires-Dist: httpx~=0.
|
373
|
-
Requires-Dist: imagequant~=1.1.
|
372
|
+
Requires-Dist: httpx~=0.28.0
|
373
|
+
Requires-Dist: imagequant~=1.1.3
|
374
374
|
Requires-Dist: memory-tempfile~=2.2.3
|
375
375
|
Requires-Dist: mergedeep~=1.3.4
|
376
376
|
Requires-Dist: mini-racer~=0.12.4
|
377
377
|
Requires-Dist: numpy>=1.22.4
|
378
378
|
Requires-Dist: Pillow~=11.0.0
|
379
379
|
Requires-Dist: pyoxipng~=9.0.0
|
380
|
-
Requires-Dist: python-telegram-bot~=21.
|
380
|
+
Requires-Dist: python-telegram-bot~=21.8
|
381
381
|
Requires-Dist: psutil~=6.1.0
|
382
382
|
Requires-Dist: PyMemoryEditor~=1.5.22
|
383
383
|
Requires-Dist: requests~=2.32.3
|
384
384
|
Requires-Dist: rlottie_python~=1.3.6
|
385
385
|
Requires-Dist: signalstickers-client-fork-laggykiller~=3.3.0.post2
|
386
|
-
Requires-Dist: tqdm~=4.67.
|
386
|
+
Requires-Dist: tqdm~=4.67.1
|
387
387
|
Requires-Dist: ttkbootstrap-fork-laggykiller~=1.5.1
|
388
388
|
Requires-Dist: websocket_client~=1.8.0
|
389
389
|
|
@@ -1,23 +1,23 @@
|
|
1
|
-
aiolimiter~=1.
|
1
|
+
aiolimiter~=1.2.0
|
2
2
|
anyio~=4.6.2.post1
|
3
3
|
apngasm_python~=1.3.1
|
4
4
|
av~=13.1.0
|
5
5
|
beautifulsoup4~=4.12.3
|
6
6
|
rookiepy~=0.5.6
|
7
|
-
httpx~=0.
|
8
|
-
imagequant~=1.1.
|
7
|
+
httpx~=0.28.0
|
8
|
+
imagequant~=1.1.3
|
9
9
|
memory-tempfile~=2.2.3
|
10
10
|
mergedeep~=1.3.4
|
11
11
|
mini-racer~=0.12.4
|
12
12
|
numpy>=1.22.4
|
13
13
|
Pillow~=11.0.0
|
14
14
|
pyoxipng~=9.0.0
|
15
|
-
python-telegram-bot~=21.
|
15
|
+
python-telegram-bot~=21.8
|
16
16
|
psutil~=6.1.0
|
17
17
|
PyMemoryEditor~=1.5.22
|
18
18
|
requests~=2.32.3
|
19
19
|
rlottie_python~=1.3.6
|
20
20
|
signalstickers-client-fork-laggykiller~=3.3.0.post2
|
21
|
-
tqdm~=4.67.
|
21
|
+
tqdm~=4.67.1
|
22
22
|
ttkbootstrap-fork-laggykiller~=1.5.1
|
23
23
|
websocket_client~=1.8.0
|
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.10.6 → sticker_convert-2.10.8}/src/sticker_convert/downloaders/__init__.py
RENAMED
File without changes
|
{sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/downloaders/download_base.py
RENAMED
File without changes
|
File without changes
|
{sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/downloaders/download_kakao.py
RENAMED
File without changes
|
{sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/downloaders/download_line.py
RENAMED
File without changes
|
{sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/downloaders/download_signal.py
RENAMED
File without changes
|
File without changes
|
{sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/downloaders/download_viber.py
RENAMED
File without changes
|
File without changes
|
{sticker_convert-2.10.6 → sticker_convert-2.10.8}/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
|
{sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/gui_components/gui_utils.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
|
{sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/resources/NotoColorEmoji.ttf
RENAMED
File without changes
|
{sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/resources/appicon.icns
RENAMED
File without changes
|
File without changes
|
File without changes
|
{sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/resources/compression.json
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/resources/memdump_linux.sh
RENAMED
File without changes
|
{sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/resources/memdump_windows.ps1
RENAMED
File without changes
|
File without changes
|
File without changes
|
{sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/uploaders/upload_base.py
RENAMED
File without changes
|
{sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/utils/auth/get_discord_auth.py
RENAMED
File without changes
|
{sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/utils/auth/get_kakao_auth.py
RENAMED
File without changes
|
File without changes
|
{sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/utils/auth/get_line_auth.py
RENAMED
File without changes
|
{sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/utils/auth/get_signal_auth.py
RENAMED
File without changes
|
{sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/utils/auth/get_viber_auth.py
RENAMED
File without changes
|
File without changes
|
{sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/utils/chrome_remotedebug.py
RENAMED
File without changes
|
File without changes
|
{sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/utils/files/cache_store.py
RENAMED
File without changes
|
{sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/utils/files/json_manager.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/utils/files/run_bin.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/utils/media/codec_info.py
RENAMED
File without changes
|
{sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert/utils/media/decrypt_kakao.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert.egg-info/dependency_links.txt
RENAMED
File without changes
|
{sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert.egg-info/entry_points.txt
RENAMED
File without changes
|
{sticker_convert-2.10.6 → sticker_convert-2.10.8}/src/sticker_convert.egg-info/top_level.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|