passbestellung johanna

This commit is contained in:
marko
2025-04-06 18:59:42 +02:00
parent 117fade626
commit 2ae41b2f2e
4 changed files with 18 additions and 1 deletions

View File

@@ -0,0 +1,12 @@
#! /usr/bin/env bash
sourcePath=${1}
sourceDirectory=$(dirname ${sourcePath})
sourceFile=$(basename $sourcePath)
targetFile=${sourceFile%%.*}.jpg
targetPath=${sourceDirectory}/${targetFile}
echo "Processing ${sourcePath}"
convert -resize "2048>" ${sourcePath} ${targetPath}
guetzli ${targetPath} ${targetPath}