## Make a plain txt image from file read -ep "Text file to use: " infile read -ep "Input size, eg.. 600x300 or 1200x800: " size read -ep "Input font size: " font # Define background and text color (optional) read -ep "Input background color: " BG #BG="black" # Change to your desired background color read -ep "Input text color: " TC #TC="green" # Change to your desired text color
# Read text content from file securely (assuming trusted content) #text=$(<"$infile")
# Create the image using label with text variable #convert -background "$BG" -fill "$TC" -pointsize "$font" -size "$size" -gravity Center label:"$text" muhmeme.jpg>
[ + ]anon
[ - ] anon 2656916 2 points 3 monthsJan 7, 2025 18:09:11 ago (+2/-0)
[ + ]anon
[ - ] anon 2272249 0 points 3 monthsJan 7, 2025 15:10:40 ago (+0/-0)
[ + ]anon
[ - ] anon 1739583 0 points 3 monthsJan 7, 2025 14:31:57 ago (+0/-0)
Forgot to run text through script and post image.
read -ep "Text file to use: " infile
read -ep "Input size, eg.. 600x300 or 1200x800: " size
read -ep "Input font size: " font
# Define background and text color (optional)
read -ep "Input background color: " BG
#BG="black" # Change to your desired background color
read -ep "Input text color: " TC
#TC="green" # Change to your desired text color
# Read text content from file securely (assuming trusted content)
#text=$(<"$infile")
# Create the image using label with text variable
#convert -background "$BG" -fill "$TC" -pointsize "$font" -size "$size" -gravity Center label:"$text" muhmeme.jpg>
convert -size "$size" xc:"$BG" -pointsize "$font" -fill "$TC" -gravity center -draw "text 0,0 '$(cat "$infile")'" muhmeme.png>
[ + ] Ducktalesooo000ooo
[ - ] Ducktalesooo000ooo 7 points 3 monthsJan 7, 2025 13:43:25 ago (+7/-0)
[ + ] anon
[ - ] anon 3145178 [op] 1 point 3 monthsJan 7, 2025 14:06:04 ago (+1/-0)
[ + ] Ducktalesooo000ooo
[ - ] Ducktalesooo000ooo 2 points 3 monthsJan 7, 2025 14:16:05 ago (+2/-0)