commit 906346e1f38338860d6477ab7a37d30c03d30bf4 Author: vitrinekast Date: Thu Jan 9 15:04:52 2025 +0100 include the first script diff --git a/README.md b/README.md new file mode 100644 index 0000000..bac8294 --- /dev/null +++ b/README.md @@ -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 \ No newline at end of file diff --git a/assets/landscape_1.jpg b/assets/landscape_1.jpg new file mode 100644 index 0000000..4c6fd20 Binary files /dev/null and b/assets/landscape_1.jpg differ diff --git a/assets/landscape_2.jpg b/assets/landscape_2.jpg new file mode 100644 index 0000000..d4e6e25 Binary files /dev/null and b/assets/landscape_2.jpg differ diff --git a/assets/landscape_3.jpg b/assets/landscape_3.jpg new file mode 100644 index 0000000..ec1ba9f Binary files /dev/null and b/assets/landscape_3.jpg differ diff --git a/assets/landscape_4.jpg b/assets/landscape_4.jpg new file mode 100644 index 0000000..ed83b51 Binary files /dev/null and b/assets/landscape_4.jpg differ diff --git a/assets/poster_1.jpg b/assets/poster_1.jpg new file mode 100644 index 0000000..e792ec2 Binary files /dev/null and b/assets/poster_1.jpg differ diff --git a/assets/poster_2.jpg b/assets/poster_2.jpg new file mode 100644 index 0000000..2453904 Binary files /dev/null and b/assets/poster_2.jpg differ diff --git a/assets/poster_3.jpg b/assets/poster_3.jpg new file mode 100644 index 0000000..a08890c Binary files /dev/null and b/assets/poster_3.jpg differ diff --git a/assets/poster_4.jpg b/assets/poster_4.jpg new file mode 100644 index 0000000..df06f27 Binary files /dev/null and b/assets/poster_4.jpg differ diff --git a/assets/poster_5.jpg b/assets/poster_5.jpg new file mode 100644 index 0000000..17cb93b Binary files /dev/null and b/assets/poster_5.jpg differ diff --git a/assets/poster_6.jpg b/assets/poster_6.jpg new file mode 100644 index 0000000..0ef079e Binary files /dev/null and b/assets/poster_6.jpg differ diff --git a/output_landscape.jpg b/output_landscape.jpg new file mode 100644 index 0000000..209e076 Binary files /dev/null and b/output_landscape.jpg differ diff --git a/output_poster.jpg b/output_poster.jpg new file mode 100644 index 0000000..ebc0464 Binary files /dev/null and b/output_poster.jpg differ diff --git a/script.sh b/script.sh new file mode 100644 index 0000000..55a3063 --- /dev/null +++ b/script.sh @@ -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 \ No newline at end of file