From cb6235c606aef169ec8fe072ca4330ecdbb7b5f9 Mon Sep 17 00:00:00 2001
From: Stefano Pigozzi <me@steffo.eu>
Date: Mon, 28 Oct 2024 12:40:50 +0100
Subject: [PATCH] Fix something in emoji generation

---
 functions/gen-emoji-akkoma.fish   | 2 +-
 functions/gen-emoji-discord.fish  | 2 +-
 functions/gen-emoji-telegram.fish | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/functions/gen-emoji-akkoma.fish b/functions/gen-emoji-akkoma.fish
index 713d827..71e4ca9 100644
--- a/functions/gen-emoji-akkoma.fish
+++ b/functions/gen-emoji-akkoma.fish
@@ -4,7 +4,7 @@ if [ $status -eq 0 ]
         log-t "Creating" "Akkoma" "directory..."
         command mkdir --parents "Akkoma"
         log-d "Processing" "$argv[1]" "for Akkoma use..."
-        command magick -background none "$argv[1]" -resize "106x106^" -gravity center -extent 106x106 $argv[2..-1] "Akkoma/$argv[1]"
+        command magick -background none "$argv[1]"'[106x106]' -gravity 'center' -extent '106x106' $argv[2..-1] "Akkoma/$argv[1]"
         log-t "Done! Emoji added to the" "Akkoma" "directory!"
     end
 end
diff --git a/functions/gen-emoji-discord.fish b/functions/gen-emoji-discord.fish
index 0d76e37..0c6c60a 100644
--- a/functions/gen-emoji-discord.fish
+++ b/functions/gen-emoji-discord.fish
@@ -4,7 +4,7 @@ if [ $status -eq 0 ]
         log-t "Creating" "Discord" "directory..."
         command mkdir --parents "Discord"
         log-d "Processing" "$argv[1]" "for Discord use..."
-        command magick -background none "$argv[1]" -resize "128x128^" -gravity center -extent 128x128 $argv[2..-1] "Discord/$argv[1]"
+        command magick -background none "$argv[1]"'[128x128]' -gravity 'center' -extent '128x128' $argv[2..-1] "Discord/$argv[1]"
         log-t "Done! Emoji added to the" "Discord" "directory!"
     end
 end
diff --git a/functions/gen-emoji-telegram.fish b/functions/gen-emoji-telegram.fish
index 3e5e7bd..600e87a 100644
--- a/functions/gen-emoji-telegram.fish
+++ b/functions/gen-emoji-telegram.fish
@@ -4,7 +4,7 @@ if [ $status -eq 0 ]
         log-t "Creating" "Telegram" "directory..."
         command mkdir --parents "Telegram"
         log-d "Processing" "$argv[1]" "for Telegram use..."
-        command magick -background none "$argv[1]" -resize "100x100^" -gravity center -extent 100x100 $argv[2..-1] "Telegram/$argv[1]"
+        command magick -background none "$argv[1]"'[100x100]' -gravity 'center' -extent '100x100' $argv[2..-1] "Telegram/$argv[1]"
         log-t "Done! Emoji added to the" "Telegram" "directory!"
     end
 end