summaryrefslogtreecommitdiff
path: root/public/menu/redimensionnement.sh
diff options
context:
space:
mode:
Diffstat (limited to 'public/menu/redimensionnement.sh')
-rwxr-xr-xpublic/menu/redimensionnement.sh50
1 files changed, 25 insertions, 25 deletions
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 @@
1#!/bin/bash 1#!/bin/bash
2 2
3a=0 3a=0
4 4
5b=".jpg" 5b=".jpg"
6for a in `ls | grep $b` 6for a in `ls | grep $b`
7do 7do
8 # retire l'extention 8 # retire l'extention
9 a=`echo $a | cut -f1 -d'.'` 9 a=`echo $a | cut -f1 -d'.'`
10 10
11 # les guillemets permettent la concaténation 11 # les guillemets permettent la concaténation
12 magick $a$b -scale 76% "$a"_petit"$b" 12 magick $a$b -scale 76% "$a"_petit"$b"
13 magick $a$b -scale 50.5% "$a"_mini"$b" 13 magick $a$b -scale 50.5% "$a"_mini"$b"
14done 14done
15 15
16b=".png" 16b=".png"
17for a in `ls | grep $b` 17for a in `ls | grep $b`
18do 18do
19 # retire l'extention 19 # retire l'extention
20 a=`echo $a | cut -f1 -d'.'` 20 a=`echo $a | cut -f1 -d'.'`
21 21
22 # les guillemets permettent la concaténation 22 # les guillemets permettent la concaténation
23 magick $a$b -scale 76% "$a"_petit"$b" 23 magick $a$b -scale 76% "$a"_petit"$b"
24 magick $a$b -scale 50.5% "$a"_mini"$b" 24 magick $a$b -scale 50.5% "$a"_mini"$b"
25done 25done