stable-diffusion-webui
stable-diffusion-webui copied to clipboard
[Feature Request]: Date Prefix Option for Directory Names (for sorting)
Is there an existing issue for this?
- [X] I have searched the existing issues and checked the recent builds/commits
What would your feature do ?
Would love to see an optional (opt-in) feature that automatically precedes each directory name with an ISO 8601 formatted date and, second option, time - for sorting.
ISO 8601 date would allow for proper sorting of directories in all systems.
Format: YYYY-MM-DD (fully padded)
Second add-in option: 24 hour time to the second, again, for sorting and keeping runs separate
Format: YYYY-MM-DD HH.MM.SS
For folks who run a lot of the same prompt, having the time would be very helpful. If the prompt is the same, and the date exists, it would just write to the same directory. But if you wanted a separate directory for each run, the second (time to the second) add-in would be great.
If you ran 50 images in one batch, it would show up in a single directory. With the time function enabled, a new directory would be created for the next batch.
Proposed workflow
- Go to settings
- Enable Date (opt in, disabled by default)
- If Date enabled, Time checkmark becomes available as a second option (opt in, disabled by default)
Additional information
Using the ISO 8601 format for date and time (24 hour) will be easy for everyone to get used to, internationally, and be useful for sorting, which I think a lot of people are going to start having difficulties with over time, as their collection of AI generated images grows.
This will also easily allow people to purge old directories, and locate newly created directories without opening/searching based on the prompt.
https://www.iso.org/iso-8601-date-and-time-format.html
Example directory name:
2019-09-26T075830 - a photo of an astronaut riding a horse
This would also help with de-duping long prompts that only change at the end, as the date/time portion would always be unique for each run.
a feature was added, you can now do so
uncheck Add number to filename when saving
and [datetime<Format><TimeZone>]
please read the wiki page
Custom Images Filename Name and Subdirectory
ps please give me feedback about the writing of wiki, does it gave a clear explanation I would like a external viewpoint
a feature was added, you can now do so uncheck
Add number to filename when saving
and[datetime<Format><TimeZone>]
please read the wiki page Custom Images Filename Name and Subdirectoryps please give me feedback about the writing of wiki, does it gave a clear explanation I would like a external viewpoint
Is that for the filename or the directory?
ahh....both since you asking I assume that I didn't make it clear enough