aboutsummaryrefslogtreecommitdiffstats
path: root/modules/images.py
Commit message (Collapse)AuthorAgeFilesLines
* make it so that PNG images with EXIF do not lose parameters in PNG info tabAUTOMATIC2023-01-171-2/+3
|
* Revert "Merge pull request #3791 from shirayu/fix/filename"AUTOMATIC2023-01-041-12/+4
| | | | | This reverts commit eed58279e7cb0e873ebd88a29609f9bab0f1f3af, reversing changes made to 4ae960b01c6711c66985479f14809dc7fa549fc2.
* Merge pull request #3791 from shirayu/fix/filenameAUTOMATIC11112023-01-041-4/+12
|\ | | | | Truncate too long filename (Fix #705)
| * Truncate too long filenameYuta Hayashibe2022-10-271-4/+12
| |
* | Hires fix reworkAUTOMATIC2023-01-021-4/+20
| |
* | rework of callback for #6094AUTOMATIC2023-01-011-4/+6
| |
* | Merge pull request #6094 from AlUlkesh/masterAUTOMATIC11112023-01-011-0/+1
|\ \ | | | | | | Adding image numbers on grids
| * | Adding image numbers on gridsAlUlkesh2023-01-011-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | New grid option in settings enables adding of image numbers on grids. This makes identifying the images, especially in larger batches, much easier. Revert "Adding image numbers on grids" This reverts commit 3530c283b4b1d3a3cab40efbffe4cf2697938b6f. Implements Callback for image grid loop Necessary to make "Add image's number to its picture in the grid" extension possible.
* | | 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.