initial commit

This commit is contained in:
SillyPill 2019-05-30 10:51:11 +05:30
parent 7e0b29fa2f
commit 5f24645190
8 changed files with 28 additions and 0 deletions

BIN
arch.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 344 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 864 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 589 KiB

BIN
examples/example1.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 316 KiB

BIN
examples/example2.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 598 KiB

BIN
examples/example3.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 658 KiB

28
mepapemaker.sh Executable file
View 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?