Added my thumbnail gen script till I have a go alternative
This commit is contained in:
parent
95c9a6d250
commit
2bb6089201
13
gthumbs.sh
Executable file
13
gthumbs.sh
Executable file
@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
in_dir=$1
|
||||
out_dir=$2
|
||||
|
||||
shopt -s nullglob
|
||||
for img in "$in_dir/"*.jpg
|
||||
do
|
||||
img_name=${img:2}
|
||||
echo "creating thumbnail for $img_name: $out_dir/t_$img_name"
|
||||
epeg -p -h 300 -q 50 "$img" "$out_dir/t_$img_name"
|
||||
done
|
||||
|
||||
echo "Finished"
|
Loading…
x
Reference in New Issue
Block a user