diff --git a/mepapemaker.sh b/mepapemaker.sh index 031d6a7..ee50cb4 100755 --- a/mepapemaker.sh +++ b/mepapemaker.sh @@ -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