Skip to content
Extraits de code Groupes Projets
Vérifiée Valider 5f0baad4 rédigé par salixor's avatar salixor
Parcourir les fichiers

Fix missing quotes in sticker processing + use elif

parent 62683cf4
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -624,10 +624,8 @@ process_sticker_file() {
# Don't convert image, upload it as it is
#
local DEST_TYPE=$INIT_TYPE
cp ${FILE} ${TEMP}
else
if [[ ${animatedFiletype[$INIT_TYPE]} ]]; then
cp "$FILE" "$TEMP"
elif [[ ${animatedFiletype[$INIT_TYPE]} ]]; then
#
# Convert animated image
#
......@@ -661,7 +659,6 @@ process_sticker_file() {
# Can't optimize the gif because discord doesn't know how to display them properly (for bridged channels)
#convert "${TEMP}" -coalesce -layers Optimize "$DEST_EXT:${TEMP}" 1>&2 \
fi
else
#
# Convert fixed image
......@@ -680,8 +677,6 @@ process_sticker_file() {
|| die "$NAME failed converting the sticker"
fi
fi
# Get real final dimensions for json
DEST_WIDTH=$(file_get_width "$TEMP")
DEST_HEIGHT=$(file_get_height "$TEMP")
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter