Skip to content
Extraits de code Groupes Projets
Valider cba43e51 rédigé par Elliu's avatar Elliu
Parcourir les fichiers

Taking only the first frame of a gif to determine the width and height

(to prevent concatenation of sizes)
parent bb93b9e6
Branches
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -732,8 +732,8 @@ __pack() { ...@@ -732,8 +732,8 @@ __pack() {
local INIT_WIDTH=$WIDTH local INIT_WIDTH=$WIDTH
local INIT_HEIGHT=$HEIGHT local INIT_HEIGHT=$HEIGHT
picture_resize_preview "$DEST" "$NAME" picture_resize_preview "$DEST" "$NAME"
local WIDTH=$( identify -format "%w" "$DEST") >/dev/null local WIDTH=$( identify -format "%w" "$DEST[0]") >/dev/null
local HEIGHT=$(identify -format "%h" "$DEST") >/dev/null local HEIGHT=$(identify -format "%h" "$DEST[0]") >/dev/null
# Add the sticker to the index file # Add the sticker to the index file
create_sticker_json "$PACK_NAME" "$NAME" "$WIDTH" "$HEIGHT" "$TYPE" "$MXC" >> $DEST_INDEX create_sticker_json "$PACK_NAME" "$NAME" "$WIDTH" "$HEIGHT" "$TYPE" "$MXC" >> $DEST_INDEX
......
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