inverse rgb worked this whole time

This commit is contained in:
Arma-Damna-Dillo 2024-12-31 23:56:37 -06:00
parent 901357adbb
commit 3e60f1a478

View file

@ -60,7 +60,7 @@ inverse_srgb=$(echo $average_color | sed 's/rgb(\([0-9]*\),\([0-9]*\),\([0-9]*\)
# Use ImageMagick to add the fortune text to the image
# Use a default font if Arial is not available
# Add the fortune text directly on top of the image
magick "$TEMP_IMAGE" -size 600x -font "$font" -fill "rgb(255, 0 172)" -pointsize "$fontsize" \
magick "$TEMP_IMAGE" -size 600x -font "$font" -fill "$inverse_srgb)" -pointsize "$fontsize" \
-gravity Center \
-annotate +$x_offset+$y_offset "$WRAPPED_FORTUNE" \
"$TEMP_FORTUNE_IMAGE"