updated script for IM7
This commit is contained in:
parent
a180195090
commit
a3e681c85e
1 changed files with 5 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue