jezs00 / pycasso

A system to send AI generated art to an E-Paper display through a Raspberry PI unit
MIT License
70 stars 4 forks source link

Multiple Post Scripts #31

Closed erbmur closed 1 year ago

erbmur commented 1 year ago

Would it be possible to change the postscript from string to strings? That way we can have other options then just "digital art, trending on artstation"? Or is there already a way to do this?

jezs00 commented 1 year ago

Do you mean have it randomly select from a group of possible post-scripts? Or you just want to change "digital art, trending on artstation" to something else?

erbmur commented 1 year ago

Random post-scripts

jezs00 commented 1 year ago

Yeah, definitely. The easy way to implement would be to just parse the config string through the predefined custom markup function so that you could have something like: (digital art|painting), (trending on artstation|8K Ultra HD) which would give you 4 random possibilities of postscript: digital art, trending on artstation painting, trending on artstation digital art, 8K Ultra HD painting, 8K Ultra HD

The less easy way would be to create a new .txt file with several lines. It would still support markup like the above. As a user, what do you like better?

erbmur commented 1 year ago

First option would be fine, saves you the trouble of having to go through another txt file generation.

jezs00 commented 1 year ago

Done for prescript, connector and postscript.