diff --git a/assets/rectangle_1.jpg b/assets/rectangle_1.jpg new file mode 100644 index 0000000..df5ec76 Binary files /dev/null and b/assets/rectangle_1.jpg differ diff --git a/assets/rectangle_2.jpg b/assets/rectangle_2.jpg new file mode 100644 index 0000000..817dabc Binary files /dev/null and b/assets/rectangle_2.jpg differ diff --git a/output_landscape.jpg b/output_landscape.jpg index 10519d5..6322b75 100644 Binary files a/output_landscape.jpg and b/output_landscape.jpg differ diff --git a/rectangle_1.jpg b/rectangle_1.jpg new file mode 100644 index 0000000..5f61c52 Binary files /dev/null and b/rectangle_1.jpg differ diff --git a/script.sh b/script.sh index 8bdbb17..2f2ce5f 100644 --- a/script.sh +++ b/script.sh @@ -2,8 +2,9 @@ TEXTTITLE=$(printf "(Un)Repair Cafe") TEXTSUBTITLE="Every 2nd and 4th thursday" -TEXTDATE=$(printf "30/01\n1730") -TEXTLOCATION="CATU" +TEXTDATE=$(printf "27/03\n17:30-22:00") +TEXTLOCATION=$(printf "CATU") +TEXTADDRESS=$(printf "Catullusweg 11\nRotterdam") TEXTLOCATIONLONG=$(printf "CATU\nCatullusweg 11\nRotterdam") DESCRIPTION=$(printf "Do you dig trough trash only to\n find treasure? Are you interested in \nbuilding servers? Do you take the shop\n out of photoshop? Is a printer jam your \n kind of jam? \n Come hang at the (un)repair cafe!") QRDESCRIPTION=$(printf "*Check out calendar.klank.school \n for more details!") @@ -19,7 +20,7 @@ convert assets/landscape_2.jpg \ \( -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,950 '$TEXTDATE'" \) \ - \( -pointsize 250 -draw "gravity southeast text 400,400 '$TEXTLOCATION'" \) \ + \( -pointsize 100 -draw "gravity southeast text 400,400 '$TEXTLOCATIONLONG'" \) \ -wave -2x0 \ output_landscape.jpg @@ -70,4 +71,29 @@ convert output_A6.jpg \ -pointsize 24 -interline-spacing 10 -draw "rotate 10 gravity center text 200,-120 '$QRDESCRIPTION'" \ -composite output_A6_qr.jpg -rm tmp_calendar.png \ No newline at end of file +rm tmp_calendar.png + +# Create a rectangle image +convert assets/rectangle_1.jpg \ + -resize "1240x1240" \ + -gamma .5 +level 100,1000 \ + -morphology Convolve \ + "3x3: -2 -1 0 -1 1 1 0 1 0" \ + -morphology Convolve \ + "3x3: -2 -1 0 -1 1 1 0 1 0" \ + -morphology Distance Euclidean:1,80 -auto-level \ + -font Courier -weight Bold \ + -gamma 0.05 \ + -wave -10x5 \ + -fill white \ + \( -pointsize 120 -draw "rotate -18 gravity center text 30,-200 '$TEXTTITLE'" \) \ + -fill white \ + \( -pointsize 50 -draw "rotate -18 gravity center text -100,0 '$TEXTSUBTITLE'" \) \ + -fill white \ + \( -pointsize 45 -interline-spacing 5 -draw "rotate -2 gravity southeast text 60, 150 '$TEXTADDRESS'" \) \ + \( -pointsize 80 -interline-spacing 5 -draw "rotate -2 gravity southeast text 100,380 '$TEXTLOCATION'" \) \ + -wave 1x40 \ + -auto-level \ + -morphology Convolve \ + "3x3: -2 -1 0 -1 1 1 0 1 0" \ + rectangle_1.jpg \ No newline at end of file