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