✨ Added wrapper script around imagemagick
This commit is contained in:
parent
c85b6a940f
commit
299605a734
1 changed files with 16 additions and 0 deletions
16
scripts/imgpress
Executable file
16
scripts/imgpress
Executable file
|
|
@ -0,0 +1,16 @@
|
||||||
|
#!/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"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue