initial commit
BIN
arch.png
Normal file
After Width: | Height: | Size: 44 KiB |
BIN
examples/arch_btw_example1.jpg
Normal file
After Width: | Height: | Size: 344 KiB |
BIN
examples/arch_btw_example3.jpg
Normal file
After Width: | Height: | Size: 864 KiB |
BIN
examples/arch_btw_examplew.jpg
Normal file
After Width: | Height: | Size: 589 KiB |
BIN
examples/example1.jpg
Normal file
After Width: | Height: | Size: 316 KiB |
BIN
examples/example2.jpg
Normal file
After Width: | Height: | Size: 598 KiB |
BIN
examples/example3.jpg
Normal file
After Width: | Height: | Size: 658 KiB |
28
mepapemaker.sh
Executable file
|
@ -0,0 +1,28 @@
|
||||||
|
#!/usr/bin/bash
|
||||||
|
|
||||||
|
pape=$1
|
||||||
|
|
||||||
|
# Get the width of the wallpaper
|
||||||
|
height=$(magick convert "$pape" -format "%h" info:)
|
||||||
|
width=$(magick convert "$pape" -format "%w" info:)
|
||||||
|
|
||||||
|
# Calculate appropriate height for logo on the wallpaper
|
||||||
|
logo_height=$(($height*9/16))
|
||||||
|
|
||||||
|
# Generate Mask
|
||||||
|
convert "./arch.png" -gravity center -resize $logo_height -background white -extent "${width}x${height}" -flatten "temp_logo.png"
|
||||||
|
|
||||||
|
# Generate Wallpaper
|
||||||
|
outfile_name=$(basename "$pape")
|
||||||
|
|
||||||
|
convert "$pape" -write-mask "temp_logo.png" -gravity center \
|
||||||
|
-blur 0x30 \
|
||||||
|
-attenuate 0.3 +noise Laplacian\
|
||||||
|
-evaluate Multiply 1.3 \
|
||||||
|
"arch_btw_$outfile_name"
|
||||||
|
|
||||||
|
# Delete temporary file
|
||||||
|
rm "temp_logo.png"
|
||||||
|
|
||||||
|
# TODO: imagemagick giving colorspace warning
|
||||||
|
# TODO: Use SVG instead of png?
|