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

Take only the dimension of the first frame of a gif

parent 59a81e2c
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -160,13 +160,13 @@ validate_homeserv() {
}
file_get_width() {
local WIDTH=$(identify -format "%w" "$1") >/dev/null
local WIDTH=$(identify -format "%w" "$1[0]") >/dev/null
local WIDTH=$(( $WIDTH > 256 ? 256 : $WIDTH ))
echo "$WIDTH"
}
file_get_height() {
local HEIGHT=$(identify -format "%h" "$1") >/dev/null
local HEIGHT=$(identify -format "%h" "$1[0]") >/dev/null
local HEIGHT=$(( $HEIGHT > 256 ? 256 : $HEIGHT ))
echo "$HEIGHT"
}
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter