Introduction
Introduction Statistics Contact Development Disclaimer Help
Fix art of day with local picasso generation. - annna - Annna the nice friendly…
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6…
Log
Files
Refs
Tags
README
---
commit d795bf823f94e2bb81c033cfc193ae074bdcc8f0
parent f52ebecd76cbf3a430773b452b2e84f91dbff679
Author: Annna Robert-Houdin <[email protected]>
Date: Sun, 3 Nov 2024 15:01:35 +0100
Fix art of day with local picasso generation.
Diffstat:
M art-of-day | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/art-of-day b/art-of-day
@@ -5,8 +5,14 @@ channel="#bitreich-books"
export PATH="$PATH:/home/annna/bin"
#arturi="$(/br/gopher/art/thisartworkdoesnotexist.sh)"
-arturi="$(stable-diffusion-emoji "
+arturi="$(stable-diffusion-emoji "$(fortune-cookie)")"
[ -z "${arturi}" ] && exit 1
+emojipath="/br/gopher/$(printf "%s\n" "${arturi}" | cut -d/ -f5-)"
+artfile="art_$(LANG=C date +%Y-%m-%dT%H:%M:%S.%N%z).jpg"
+artpath="/br/gopher/art/${artfile}"
+magick convert "${emojipath}" "${artpath}"
+arturi="gophers://bitreich.org/I/art/${artfile}"
+
annna-say -c "${channel}" "Today's art: ${arturi}"
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.