From 787d03e48471ba62cd830379428f04d996f0b74b Mon Sep 17 00:00:00 2001 From: polo Date: Thu, 17 Feb 2022 18:13:00 +0100 Subject: model update --- public/menu/redimensionnement.sh | 50 ++++++++++++++++++++-------------------- 1 file changed, 25 insertions(+), 25 deletions(-) (limited to 'public/menu') diff --git a/public/menu/redimensionnement.sh b/public/menu/redimensionnement.sh index fb78510..a108e56 100755 --- a/public/menu/redimensionnement.sh +++ b/public/menu/redimensionnement.sh @@ -1,25 +1,25 @@ -#!/bin/bash - -a=0 - -b=".jpg" -for a in `ls | grep $b` -do - # retire l'extention - a=`echo $a | cut -f1 -d'.'` - - # les guillemets permettent la concaténation - magick $a$b -scale 76% "$a"_petit"$b" - magick $a$b -scale 50.5% "$a"_mini"$b" -done - -b=".png" -for a in `ls | grep $b` -do - # retire l'extention - a=`echo $a | cut -f1 -d'.'` - - # les guillemets permettent la concaténation - magick $a$b -scale 76% "$a"_petit"$b" - magick $a$b -scale 50.5% "$a"_mini"$b" -done +#!/bin/bash + +a=0 + +b=".jpg" +for a in `ls | grep $b` +do + # retire l'extention + a=`echo $a | cut -f1 -d'.'` + + # les guillemets permettent la concaténation + magick $a$b -scale 76% "$a"_petit"$b" + magick $a$b -scale 50.5% "$a"_mini"$b" +done + +b=".png" +for a in `ls | grep $b` +do + # retire l'extention + a=`echo $a | cut -f1 -d'.'` + + # les guillemets permettent la concaténation + magick $a$b -scale 76% "$a"_petit"$b" + magick $a$b -scale 50.5% "$a"_mini"$b" +done -- cgit v1.2.3