Commit 7d6cbca1 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

resize images for wiki

parent 67225732
...@@ -101,7 +101,8 @@ else ...@@ -101,7 +101,8 @@ else
filename=$(basename $f) filename=$(basename $f)
name=${filename%.*} name=${filename%.*}
crop=`convert -trim -format %[fx:w+2*$b]x%[fx:h+2*$b]+%[fx:page.X-$b]+%[fx:page.Y-$b] $f info:` crop=`convert -trim -format %[fx:w+2*$b]x%[fx:h+2*$b]+%[fx:page.X-$b]+%[fx:page.Y-$b] $f info:`
convert $f -crop $crop "$name.jpeg"; convert $f -crop $crop "$name.jpeg";
convert "$name.jpeg" -resize 250 $name"_resized.jpeg"
fi fi
done done
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment