now with funky rectangles
This commit is contained in:
BIN
assets/rectangle_1.jpg
Normal file
BIN
assets/rectangle_1.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 203 KiB |
BIN
assets/rectangle_2.jpg
Normal file
BIN
assets/rectangle_2.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.0 MiB |
Binary file not shown.
Before Width: | Height: | Size: 327 KiB After Width: | Height: | Size: 338 KiB |
BIN
rectangle_1.jpg
Normal file
BIN
rectangle_1.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 771 KiB |
34
script.sh
34
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
|
||||
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
|
Reference in New Issue
Block a user