Created
December 3, 2024 04:11
-
-
Save ythosa/6f1b1118f19a206beaddce558d1b9a2f to your computer and use it in GitHub Desktop.
Fast way to create from your jpeg images Telegram stickers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # convert all images to webp | |
| for img in *.jpeg; do cwebp -q 80 "$img" -o "${img%.jpeg}.webp"; done | |
| # remove old jpeg files | |
| rm *.jpeg | |
| # installing imagemagick | |
| brew install imagemagick | |
| # creating folder for resized images | |
| mkdir 512 | |
| # converting all images to telegram acceptable format | |
| for img in *.webp; do convert "$img" -resize 512x512 "./512/${img%.webp}_512.webp"; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment