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