mirror of
https://github.com/ff4500/utilities.git
synced 2026-07-01 11:47:04 -05:00
edits
This commit is contained in:
4
images/make_250x250_thumbnails/go.sh
Normal file → Executable file
4
images/make_250x250_thumbnails/go.sh
Normal file → Executable file
@@ -8,13 +8,11 @@ if [ ! -d "$output_dir" ]; then
|
||||
mkdir -p "$output_dir"
|
||||
fi
|
||||
|
||||
for notpornimages in $input_dir/*.{$exts} ; do
|
||||
|
||||
for notpornimages in $input_dir/*."{$exts}" ; do
|
||||
convert "$notpornimages" \
|
||||
-thumbnail 250x250^ \
|
||||
-gravity center \
|
||||
-extent 250x250 \
|
||||
-set filename:fname '%t_thumb' \
|
||||
"$output_dir"/'%[filename:fname].jpg'
|
||||
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user