mirror of
https://github.com/Steffo99/config-fish.git
synced 2024-12-22 14:54:23 +00:00
10 lines
488 B
Fish
10 lines
488 B
Fish
which magick --skip-functions >/dev/null 2>/dev/null
|
|
if [ $status -eq 0 ]
|
|
function gen-emoji-telegram --wraps=magick
|
|
log-t "Creating" "Telegram" "directory..."
|
|
command mkdir --parents "Telegram"
|
|
log-d "Processing" "$argv[1]" "for Telegram use..."
|
|
command magick -background none "$argv[1]"'[100x100]' -gravity 'center' -extent '100x100' $argv[2..-1] "Telegram/$argv[1].webp"
|
|
log-t "Done! Emoji added to the" "Telegram" "directory!"
|
|
end
|
|
end
|