aboutsummaryrefslogtreecommitdiffstats
path: root/modules/images.py
Commit message (Collapse)AuthorAgeFilesLines
* fix rgba to rgb when using jpeg outputVladimir Mandic2022-12-261-0/+3
|
* fix F541 f-string without any placeholdersYuval Aboulafia2022-12-241-1/+1
|
* Merge pull request #5753 from calvinballing/masterAUTOMATIC11112022-12-241-2/+2
|\ | | | | Fix various typos
| * Fix various typosJim Hays2022-12-151-2/+2
| |
* | add an option for img2img background colorAUTOMATIC2022-12-241-0/+11
| |
* | fix: Modify font size when unable to fit in plotMMaker2022-12-171-7/+16
|/ | | This prevents scenarios where text without line breaks will start overlapping with each other when generating X/Y plots. This is most evident when generating X/Y plots with checkpoints, as most don't contain spaces and sometimes include extra information such as the epoch, making it extra long.
* Merge pull request #5119 from 0xb8/masterAUTOMATIC11112022-12-101-22/+29
|\ | | | | Atomically rename saved image to avoid race condition with other processes
| * Atomically rename saved image to avoid race condition with other processes.cat2022-11-271-22/+29
| |
* | rework #5012 to also work for pictures dragged into the prompt and also add ↵AUTOMATIC2022-11-271-1/+37
|/ | | | Clip skip + ENSD to parameters
* Merge pull request #4986 from mcmonkey4eva/add-model-nameAUTOMATIC11112022-11-271-0/+1
|\ | | | | add model_name pattern for saving
| * add filename santizationAlex "mcmonkey" Goodwin2022-11-231-1/+1
| | | | | | | | Probably redundant, considering the model name *is* a filename, but I suppose better safe than sorry.
| * add model_name pattern for savingAlex "mcmonkey" Goodwin2022-11-231-0/+1
| |
* | serve images from where they are saved instead of a temporary directoryAUTOMATIC2022-11-271-0/+2
|/ | | | | add an option to choose a different temporary directory in the UI add an option to cleanup the selected temporary directory at startup
* change StableDiffusionProcessing to internally use sampler name instead of ↵AUTOMATIC2022-11-191-1/+1
| | | | sampler index
* Add PNG info to pngs only if option is enabled.timntorres2022-11-011-2/+3
|
* Update images.pyYaiol2022-10-281-4/+5
| | | | Filename tags [height] and [width] are wrongly referencing to process size instead of resulting image size. Making all upscale files named wrongly.
* add script callback for before image save and change callback for after ↵AUTOMATIC2022-10-261-18/+24
| | | | image save to use a class with parameters
* default_time_format if format is blankw-e-w2022-10-261-1/+1
|
* images: allow nested bracket in filename patternMilly2022-10-261-7/+4
|
* fix default filename patternw-e-w2022-10-251-1/+3
|
* Merge branch 'master' into on-image-saved-callbackAUTOMATIC11112022-10-251-62/+134
|\
| * UnknownTimeZoneErrorw-e-w2022-10-241-1/+4
| |
| * add an option to skip adding number to filenames when saving.AUTOMATIC2022-10-241-120/+130
| | | | | | | | rework filename pattern function go through the pattern once and not calculate any of replacements until they are actually encountered in the pattern.
| * use the same datetime object for [date] and [datetime]w-e-w2022-10-241-2/+3
| |
| * replace_datetime() can now accept a datetime parameterw-e-w2022-10-241-5/+11
| |
| * remove lowercasing file_decoration as it is not needed anymorew-e-w2022-10-241-1/+1
| |
| * add sanitize_filename() to datetimew-e-w2022-10-241-0/+1
| |
| * replace "srt.replace()" in apply_filename_pattern() with equivalent re.sub()w-e-w2022-10-241-18/+17
| | | | | | | | | | | | | | | | | | | | | | the file_decoration passed into apply_filename_pattern() is formatted to lowercase to increase compatibility the use of case sensitive srt.replace() but because the newly implemented "time format" is case sensitive the lowercasing the file_decoration will cause time format to be broken in order to resolve this issue I decided to replace every srt.replace() and in if "str" in x to regular expression (case insensitive) equivalent
| * filename pattern [datetime], extended customizable Format and Time Zonew-e-w2022-10-241-1/+53
| | | | | | | | | | | | | | format: [datetime] [datetime<Format>] [datetime<Format><Time Zone>]
| * modify unnecessary sting assignment as it's going to get overwrittenw-e-w2022-10-241-2/+2
| |
| * move "file_decoration" initialize sectionw-e-w2022-10-241-12/+12
| | | | | | | | | | into "if forced_filename is None:" no need to initialize it if it's not going to be used
* | add callback after image is savedTrung Ngo2022-10-241-1/+2
|/
* Remove redundant try/except.timntorres2022-10-211-5/+1
|
* Revise comments.timntorres2022-10-211-1/+1
|
* Do nothing if image file already exists.timntorres2022-10-211-1/+5
|
* Add option to prevent empty spots in grid (2/2)Gugubo2022-10-141-1/+4
|
* Change grid row count autodetect to prevent empty spotsGugubo2022-10-141-2/+3
| | | | Instead of just rounding (sometimes resulting in grids with "empty" spots), find a divisor. For example: 8 images will now result in a 4x2 grid instead of a 3x3 with one empty spot.
* make pasting into img2img prompt workAUTOMATIC2022-10-141-18/+18
| | | | make image params request not use temp files
* Add drag/drop param loading.d8ahazard2022-10-121-0/+20
| | | | Drop an image or generational text onto the prompt bar, it loads the info for parsing.
* Support `Download` for txt files.aoirusann2022-10-091-2/+37
|
* Prefer using `Processed.sd_model_hash` attribute when filename patternMilly2022-10-061-1/+1
|
* Added job_timestamp to ProcessedMilly2022-10-061-1/+1
| | | | So `[job_timestamp]` pattern can use in saving image UI.
* Added styles to ProcessedMilly2022-10-061-6/+1
| | | | So `[styles]` pattern can use in saving image UI.
* Removed duplicate image saving codesMilly2022-10-061-3/+4
| | | | Use `modules.images.save_image()` instead.
* Merge pull request #1550 from RnDMonkey/#1484_fix_empty_styles_patternAUTOMATIC11112022-10-041-1/+1
|\ | | | | #1484 fix empty styles pattern
| * moved no-style return outside join functionRnDMonkey2022-10-031-1/+1
| |
* | Apply prompt pattern lastMilly2022-10-041-19/+20
|/
* Merge branch 'master' into #1484_fix_empty_styles_patternAUTOMATIC11112022-10-031-1/+6
|\
| * Merge branch 'master' into savingAUTOMATIC11112022-10-021-40/+37
| |\
| * | add advanced saving for save buttonWDevelopsWebApps2022-09-281-1/+4
| | |