mirror of
https://github.com/Steffo99/config-fish.git
synced 2024-12-22 06:44:22 +00:00
Emoji generation
This commit is contained in:
parent
500448b331
commit
2ee81cee13
5 changed files with 27 additions and 15 deletions
|
@ -1,10 +0,0 @@
|
|||
which magick --skip-functions >/dev/null 2>/dev/null
|
||||
if [ $status -eq 0 ]
|
||||
function emoji-discord --wraps=magick
|
||||
log-t "Creating" "Discord" "directory..."
|
||||
command mkdir --parents "Discord"
|
||||
log-t "Processing" "$argv[1]" "..."
|
||||
command magick -background none "$argv[1]" -resize "106x106^" -gravity center -extent 128x128 $argv[2..-1] "Discord/$argv[1]"
|
||||
log-s "Done! Emojis added to the " "Discord" "directory!"
|
||||
end
|
||||
end
|
|
@ -1,10 +1,11 @@
|
|||
which magick --skip-functions >/dev/null 2>/dev/null
|
||||
if [ $status -eq 0 ]
|
||||
function emoji-akkoma --wraps=magick
|
||||
function gen-emoji-akkoma --wraps=magick
|
||||
log-d "Generating emojis for" "Akkoma (106x106)" "..."
|
||||
log-t "Creating" "Akkoma" "directory..."
|
||||
command mkdir --parents "Akkoma"
|
||||
log-t "Processing" "$argv[1]" "..."
|
||||
command magick -background none "$argv[1]" -resize "106x106^" -gravity center -extent 106x106 $argv[2..-1] "Akkoma/$argv[1]"
|
||||
log-s "Done! Emojis added to the " "Akkoma" "directory!"
|
||||
log-s "Done! Emojis added to the" "Akkoma" "directory!"
|
||||
end
|
||||
end
|
10
functions/gen-emoji-all.fish
Normal file
10
functions/gen-emoji-all.fish
Normal file
|
@ -0,0 +1,10 @@
|
|||
which magick --skip-functions >/dev/null 2>/dev/null
|
||||
if [ $status -eq 0 ]
|
||||
function gen-emoji-all
|
||||
log-i "Generating emojis for" "all platforms" "..."
|
||||
gen-emoji-akkoma $argv
|
||||
gen-emoji-discord $argv
|
||||
gen-emoji-telegram $argv
|
||||
log-s "Emojis generated for" "all platforms" "successfully!"
|
||||
end
|
||||
end
|
11
functions/gen-emoji-discord.fish
Normal file
11
functions/gen-emoji-discord.fish
Normal file
|
@ -0,0 +1,11 @@
|
|||
which magick --skip-functions >/dev/null 2>/dev/null
|
||||
if [ $status -eq 0 ]
|
||||
function gen-emoji-discord --wraps=magick
|
||||
log-d "Generating emojis for" "Discord (128x128)" "..."
|
||||
log-t "Creating" "Discord" "directory..."
|
||||
command mkdir --parents "Discord"
|
||||
log-t "Processing" "$argv[1]" "..."
|
||||
command magick -background none "$argv[1]" -resize "128x128^" -gravity center -extent 128x128 $argv[2..-1] "Discord/$argv[1]"
|
||||
log-s "Done! Emojis added to the" "Discord" "directory!"
|
||||
end
|
||||
end
|
|
@ -1,10 +1,10 @@
|
|||
which magick --skip-functions >/dev/null 2>/dev/null
|
||||
if [ $status -eq 0 ]
|
||||
function emoji-telegram --wraps=magick
|
||||
function gen-emoji-telegram --wraps=magick
|
||||
log-t "Creating" "Telegram" "directory..."
|
||||
command mkdir --parents "Telegram"
|
||||
log-t "Processing" "$argv[1]" "..."
|
||||
command magick -background none "$argv[1]" -resize "100x100^" -gravity center -extent 128x128 $argv[2..-1] "Telegram/$argv[1]"
|
||||
log-s "Done! Emojis added to the " "Telegram" "directory!"
|
||||
command magick -background none "$argv[1]" -resize "100x100^" -gravity center -extent 100x100 $argv[2..-1] "Telegram/$argv[1]"
|
||||
log-s "Done! Emojis added to the" "Telegram" "directory!"
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue