blob: fb78510dec2f1d0b662be2731d2f381ad923565b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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
|