fixing renderText script

This commit is contained in:
2026-06-11 15:14:00 +02:00
parent 3e922883f7
commit 9ad6b15130
302 changed files with 120914 additions and 20 deletions
Executable
+17
View File
@@ -0,0 +1,17 @@
#!/bin/bash
if [ -z "$1" ]; then
data="@-"
else
data=`cat $1`
fi
convert \
-font '/home/kof/.fonts/TeutonWeiss.ttf' -background black -pointsize 58 -fill '#E18A07' label:"Crypto by Kof" \
-font '/home/kof/.fonts/TeutonNormal.otf' -size x40 -background black -pointsize 12 -fill '#404040' label:"message generated @ lab19 on `date`" \
-background black -fill white -font '/home/kof/.fonts/SempliceRegular.ttf' -pointsize 8 -size 300x -encoding utf8 -gravity NorthWest caption:"$data" \
-append -flatten -set label "Crypto, fuck the robots! message by k0f" -bordercolor black -border 10 /tmp/rederedText.png
sha=`sha1sum /tmp/rederedText.png | sed "s#[[:space:]]*/.*/.*.*##g"`
mv /tmp/rederedText.png /desk/crypto/"$sha".png