fix thumbnailer
This commit is contained in:
1 parent
90276293e1
commit
487e392d76
1 file changed
+3
-3
@@ -6,9 +6,9 @@
|
||||
if [ "$1" == "" ] ; then
|
||||
echo "usage: $0 webroot_dir"
|
||||
else
|
||||
cd $1
|
||||
cd $1/img
|
||||
echo "regenerate missing thumbs in $(pwd)"
|
||||
find img/ \
|
||||
find . \
|
||||
-type f \
|
||||
-regextype posix-extended \
|
||||
-iregex '.*\.(png|jpg|gif)$' \
|
||||
@@ -17,7 +17,7 @@ else
|
||||
-exec mogrify \
|
||||
-define jpeg:size=500x500 \
|
||||
-thumbnail '250>x250>' \
|
||||
-path 'thm/{}.jpg' \
|
||||
-path '../thm/{}.jpg' \
|
||||
-strip \
|
||||
'{}' \;
|
||||
fi
|
||||
Reference in new issue
Block a user