mirror of
https://github.com/Steffo99/config-fish.git
synced 2025-01-03 04:24:19 +00:00
Add telegram-emoji
and telegram-sticker
commands
This commit is contained in:
parent
d70fb0bc86
commit
150511e1ea
2 changed files with 12 additions and 1 deletions
|
@ -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
|
||||||
|
|
7
functions/telegram-sticker.fish
Normal file
7
functions/telegram-sticker.fish
Normal 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
|
Loading…
Reference in a new issue