notes/scripts/imgpress
2023-01-26 20:43:19 -08:00

16 lines
341 B
Bash
Executable file

#!/usr/bin/env bash
full_filename=$1
filename=$(echo "${1}" | awk -F. '{ print $1 }')
filetype=$(echo "${1}" | awk -F. '{ print $2 }')
# -gaussian-blur 0.05 \
# -unsharp 0x0.75+0.75+0.008 \
magick "${full_filename}" \
-sampling-factor 4:2:0 \
-interlace Plane \
-strip \
-quality 85 \
-colorspace sRGB \
"${filename}"_pressed."$filetype"