#!/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