Skip to content

Instantly share code, notes, and snippets.

@ythosa
Created December 3, 2024 04:11
Show Gist options
  • Select an option

  • Save ythosa/6f1b1118f19a206beaddce558d1b9a2f to your computer and use it in GitHub Desktop.

Select an option

Save ythosa/6f1b1118f19a206beaddce558d1b9a2f to your computer and use it in GitHub Desktop.
Fast way to create from your jpeg images Telegram stickers
# 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