1
Fork 0
mirror of https://github.com/Steffo99/config-fish.git synced 2024-10-16 14:27:34 +00:00

Add telegram-emoji and telegram-sticker commands

This commit is contained in:
Steffo 2024-05-20 02:02:54 +02:00
parent d70fb0bc86
commit 150511e1ea
Signed by: steffo
GPG key ID: 5ADA3868646C3FC0
2 changed files with 12 additions and 1 deletions

View file

@ -1,3 +1,7 @@
function telegram-emoji function telegram-emoji
magick -background none "$argv[1]" -resize "100x100^" -gravity "center" -extent "100x100" "$argv[1].telegram-emoji.png" echo_progress "Processing "
echo_highlight "$argv[1]"
echo_progress "..."
echo
magick -background none "$argv[1]" -resize "100x100^" -gravity center -extent 100x100 $argv[2..-1] "$argv[1].telegram-emoji.png"
end end

View file

@ -0,0 +1,7 @@
function telegram-sticker
echo_progress "Processing "
echo_highlight "$argv[1]"
echo_progress "..."
echo
magick -background none "$argv[1]" -resize 512x512 -gravity center $argv[2..-1] "$argv[1].telegram-sticker.png"
end