commit 83198efbe133ee2f8927faf391cf47aeff1f9e71 parent 7db636350a8508555cdea0d6704052f44d22c47d Author: sej <sej@sejdt.localhost> Date: Sun, 29 Sep 2024 22:43:59 +0200 Fixes error no such file or directory for img/thumb and img/preview. Now these directories are created in gen_thumbs.sh. Diffstat:
M | gen_thumbs.sh | | | 7 | +++++-- |
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/gen_thumbs.sh b/gen_thumbs.sh @@ -1,2 +1,5 @@ -mogrify -path $1img/thumb -quality 70 -strip -resize 12.5% $1img/fullres/* -mogrify -path $1img/preview -quality 80 -strip -resize 50% $1img/fullres/* +#!/usr/bin/env bash +mkdir $1/img/thumb +mkdir $1/img/preview +mogrify -path $1/img/thumb -quality 70 -strip -resize 12.5% $1/img/fullres/* +mogrify -path $1/img/preview -quality 80 -strip -resize 50% $1/img/fullres/*