From 2bb6089201ee976f35eeb19b41be17763c4f1a3d Mon Sep 17 00:00:00 2001 From: "Toerd@480" Date: Sun, 20 Oct 2019 00:09:58 +0200 Subject: [PATCH] Added my thumbnail gen script till I have a go alternative --- gthumbs.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 gthumbs.sh diff --git a/gthumbs.sh b/gthumbs.sh new file mode 100755 index 0000000..3e4e161 --- /dev/null +++ b/gthumbs.sh @@ -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"