include the first script
5
README.md
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
# Create your own cool poster!
|
||||||
|
|
||||||
|
edit the text in `script.sh` and run `sh script.sh`
|
||||||
|
|
||||||
|
Imagemagick needs to be installed
|
BIN
assets/landscape_1.jpg
Normal file
After Width: | Height: | Size: 139 KiB |
BIN
assets/landscape_2.jpg
Normal file
After Width: | Height: | Size: 104 KiB |
BIN
assets/landscape_3.jpg
Normal file
After Width: | Height: | Size: 1.6 MiB |
BIN
assets/landscape_4.jpg
Normal file
After Width: | Height: | Size: 140 KiB |
BIN
assets/poster_1.jpg
Normal file
After Width: | Height: | Size: 4.7 MiB |
BIN
assets/poster_2.jpg
Normal file
After Width: | Height: | Size: 4.7 MiB |
BIN
assets/poster_3.jpg
Normal file
After Width: | Height: | Size: 4.7 MiB |
BIN
assets/poster_4.jpg
Normal file
After Width: | Height: | Size: 583 KiB |
BIN
assets/poster_5.jpg
Normal file
After Width: | Height: | Size: 660 KiB |
BIN
assets/poster_6.jpg
Normal file
After Width: | Height: | Size: 1.6 MiB |
BIN
output_landscape.jpg
Normal file
After Width: | Height: | Size: 1.5 MiB |
BIN
output_poster.jpg
Normal file
After Width: | Height: | Size: 3.0 MiB |
41
script.sh
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
TEXTTITLE="Server Tour + more"
|
||||||
|
TEXTSUBTITLE="(Un)repair cafe"
|
||||||
|
TEXTDATE="16/01/2025"
|
||||||
|
TEXTLOCATION="CATU"
|
||||||
|
TEXTLOCATIONLONG=$(printf "CATU\nCatullusweg 11")
|
||||||
|
DESCRIPTION=$(printf "Join us at Catu on January 16th \n for a tour of the klankschool server.\n\n There will also be some games \n on the theme of software.")
|
||||||
|
|
||||||
|
|
||||||
|
# Create the image with text overlays
|
||||||
|
convert assets/landscape_3.jpg \
|
||||||
|
-gamma 1 +level 0,1000 -white-threshold 999 \
|
||||||
|
-font Courier \
|
||||||
|
-wave -20x4 \
|
||||||
|
-weight 900 \
|
||||||
|
-fill white \
|
||||||
|
\( -pointsize 200 -draw "rotate -19 gravity northwest text -150,1200 '$TEXTTITLE'" \) \
|
||||||
|
\( -pointsize 100 -draw "rotate -19 gravity northwest text -220, 1820 '$TEXTSUBTITLE'" \) \
|
||||||
|
\( -pointsize 100 -draw "gravity southeast text 400,1050 '$TEXTDATE'" \) \
|
||||||
|
\( -pointsize 250 -draw "gravity southeast text 400,400 '$TEXTLOCATION'" \) \
|
||||||
|
-wave -2x0 \
|
||||||
|
output_landscape.jpg
|
||||||
|
|
||||||
|
convert assets/poster_3.jpg \
|
||||||
|
-gamma 1 +level 0,1200 \
|
||||||
|
-morphology Distance Euclidean:4,180 -auto-level \
|
||||||
|
-font Courier \
|
||||||
|
-weight 900 \
|
||||||
|
-fill white \
|
||||||
|
\( -pointsize 200 -draw "rotate 7 gravity northwest text 350,400 '$TEXTTITLE'" \) \
|
||||||
|
-fill black \
|
||||||
|
\( -pointsize 100 -draw "rotate -25 gravity northwest text 150, 2320 '$TEXTSUBTITLE'" \) \
|
||||||
|
-fill white \
|
||||||
|
\( -pointsize 100 -draw "rotate 4 gravity northwest text
|
||||||
|
500,1150 '$TEXTDATE'" \) \
|
||||||
|
-fill white \
|
||||||
|
\( -pointsize 100 -draw "rotate 2 gravity southeast text 540,1500 '$TEXTLOCATIONLONG'" \) \
|
||||||
|
wave -2x0 \
|
||||||
|
\( -pointsize 80 -draw "rotate 2 gravity southeast text 540,700 '$DESCRIPTION'" \) \
|
||||||
|
output_poster.jpg
|