Showing 1 changed files with 13 additions and 1 deletions
+13 -1
thumbnails
... ...
@@ -19,7 +19,19 @@ set_imgsize 'xsmall' 240 240
19 19
 set_imgsize '2small' 144 144
20 20
 set_imgsize 'thumb' 120 120
21 21
 
22
-eval $(readconf --conf "$thumbnailsconf" -s mysql -s galeries -s path --case-sensitive --array=galerie)
22
+if which readconf > /dev/null; then
23
+    eval $(readconf --conf "$thumbnailsconf" -s mysql -s galeries -s path --case-sensitive --array=galerie)
24
+else
25
+    echo readconf needed !
26
+    echo PATH = $PATH
27
+    echo get readconf at https://sebmarque.hd.free.fr/git/seb/scripts/raw/master/readconf
28
+    exit 1
29
+fi
30
+
31
+if ! which convert > /dev/null; then
32
+    echo please install ImageMagick
33
+    exit 1
34
+fi
23 35
 
24 36
 for ((g=0; g<${#galerie[@]}; g++)); do
25 37
     sqlcmd="select concat('file=', path, ';rotation=', rotation * 90) from piwigo_images \