updated script for IM7

This commit is contained in:
Siren 2024-12-11 23:46:30 +01:00
parent a180195090
commit a3e681c85e

View file

@ -19,26 +19,27 @@ fi
density=$(awk "BEGIN {print ($scale_val/25.0)*50}")
# generate a PNG mask from the source svg
convert \
magick \
-density $density \
-gravity center \
arch.svg \
-background white \
-extent "${width}x${height}" \
arch.svg \
-resize 100% \
tmp_arch_mask.png
# generate wallpaper name
outfile_name=$(basename "$pape")
# add arch mask to original image
convert \
magick \
"$pape" \
-write-mask "tmp_arch_mask.png" \
-gravity center \
-blur 0x30 \
-attenuate 0.3 \
+noise Laplacian \
-evaluate Multiply 1.3 \
"$pape" \
"arch_btw_$outfile_name"
# delete temporary file