igolaizola / bulkai

AI image generation in bulk automatically
MIT License
191 stars 40 forks source link

(feature request) Add ability to group image downloads by prompt #16

Open jaymakes11 opened 1 year ago

jaymakes11 commented 1 year ago

First off, thanks for this awesome tool. Excited to see it continually get better and better.

The idea is that a list of prompts like this:

album: my-mj-album
prompts:
  - frog on leaf
  - dog running
  - mountain lake

would output the generated images into the following folders:

/my-mj-album/images/frog-on-leaf/{images}
/my-mj-album/images/dog-running/{images}
/my-mj-album/images/mountain-lake/{images}

Additional (related) feature requests):

igolaizola commented 1 year ago

Hi @jaymakes11! Thanks for your proposal.

I guess both subfolder logic and file name pattern could be implemented by a "filename-pattern" parameter or something similar. This will require defining template variables such as {prompt}, {timestamp}, etc. This isn't a bad feature, but I'm afraid it won't add much value to the tool. So I won't prioritize it.

Meanwhile you could achieve something similar by launching the tool several times with different album names. Or even adding a bash script that creates the subfolders and rename files after bulkai has finished.