Files
cwsvJudo/mitglieder/pässe/pässe.2025/convert
2025-04-06 18:59:42 +02:00

13 lines
313 B
Bash
Executable File

#! /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}