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

Remove unused functions

parent 9c16aea1
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -188,33 +188,6 @@ __upload_file() {
[ $? -ne 0 ] && die "Failed to upload sticker $NAME for pack $PACK_NAME to $STPKG_HOMESERV"
}
picture_process_sticker() {
local FILE=$1 # The source file
local DEST=$2 # The destination file
local NAME=$3 # The pretty name of the sticker
local WIDTH=$4 # The WIDTH!
local HEIGHT=$5 # The HEIGHT!
local TYPE=$6 # The type of the file (png/gif/webp)
local DSTTYPE=$7 # The type of the destination file (png/gif)
local repage=`[ "x${TYPE}" != "xgif" ] && echo '+repage' || echo ''`
local resize=`[ "x${TYPE}" != "xgif" ] && echo "-resize ${WIDTH}x${HEIGHT}" || echo ''`
local OPTS=`[ "$TYPE" = "png" ] && echo '-type TrueColor PNG32:' || echo ' -coalesce '`
info "File '$FILE' => '$DEST' ($TYPE) | OPTS = '$OPTS'"
convert "$FILE" -bordercolor none -border 1 "$DEST" 1>&2 || die "$NAME failed on border"
convert "$DEST" -trim ${repage} "$DEST" 1>&2 || die "$NAME failed on trim"
convert -background none -gravity center "$DEST" ${resize} $OPTS"$DEST" 1>&2 \
|| die "$NAME failed on ${WIDTH}x${HEIGHT} resize"
}
picture_resize_preview() {
local DEST=$1 # The file
local NAME=$2 # The pretty name for the sticker
convert "$DEST" -resize "128x128" "$DEST" 1>&2 || die "$NAME failed at 128x128 resize"
}
create_sticker_json() {
local PACK_NAME=$1 # Pack name
local NAME=$2 # Pretty name for the sticker
......
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