aboutsummaryrefslogtreecommitdiff
path: root/modules/images.py
AgeCommit message (Collapse)Author
2022-11-27Merge pull request #4986 from mcmonkey4eva/add-model-nameAUTOMATIC1111
add model_name pattern for saving
2022-11-27serve images from where they are saved instead of a temporary directoryAUTOMATIC
add an option to choose a different temporary directory in the UI add an option to cleanup the selected temporary directory at startup
2022-11-23add filename santizationAlex "mcmonkey" Goodwin
Probably redundant, considering the model name *is* a filename, but I suppose better safe than sorry.
2022-11-23add model_name pattern for savingAlex "mcmonkey" Goodwin
2022-11-19change StableDiffusionProcessing to internally use sampler name instead of ↵AUTOMATIC
sampler index
2022-10-31Add PNG info to pngs only if option is enabled.timntorres
2022-10-29Update images.pyYaiol
Filename tags [height] and [width] are wrongly referencing to process size instead of resulting image size. Making all upscale files named wrongly.
2022-10-26add script callback for before image save and change callback for after ↵AUTOMATIC
image save to use a class with parameters
2022-10-26default_time_format if format is blankw-e-w
2022-10-26images: allow nested bracket in filename patternMilly
2022-10-25fix default filename patternw-e-w
2022-10-25Merge branch 'master' into on-image-saved-callbackAUTOMATIC1111
2022-10-24UnknownTimeZoneErrorw-e-w
2022-10-24add an option to skip adding number to filenames when saving.AUTOMATIC
rework filename pattern function go through the pattern once and not calculate any of replacements until they are actually encountered in the pattern.
2022-10-24use the same datetime object for [date] and [datetime]w-e-w
2022-10-24replace_datetime() can now accept a datetime parameterw-e-w
2022-10-24remove lowercasing file_decoration as it is not needed anymorew-e-w
2022-10-24add sanitize_filename() to datetimew-e-w
2022-10-24replace "srt.replace()" in apply_filename_pattern() with equivalent re.sub()w-e-w
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
2022-10-24filename pattern [datetime], extended customizable Format and Time Zonew-e-w
format: [datetime] [datetime<Format>] [datetime<Format><Time Zone>]
2022-10-24modify unnecessary sting assignment as it's going to get overwrittenw-e-w
2022-10-24move "file_decoration" initialize sectionw-e-w
into "if forced_filename is None:" no need to initialize it if it's not going to be used
2022-10-24add callback after image is savedTrung Ngo
2022-10-21Remove redundant try/except.timntorres
2022-10-21Revise comments.timntorres
2022-10-21Do nothing if image file already exists.timntorres
2022-10-14Add option to prevent empty spots in grid (2/2)Gugubo
2022-10-14Change grid row count autodetect to prevent empty spotsGugubo
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.
2022-10-14make pasting into img2img prompt workAUTOMATIC
make image params request not use temp files
2022-10-12Add drag/drop param loading.d8ahazard
Drop an image or generational text onto the prompt bar, it loads the info for parsing.
2022-10-09Support `Download` for txt files.aoirusann
2022-10-06Prefer using `Processed.sd_model_hash` attribute when filename patternMilly
2022-10-06Added job_timestamp to ProcessedMilly
So `[job_timestamp]` pattern can use in saving image UI.
2022-10-06Added styles to ProcessedMilly
So `[styles]` pattern can use in saving image UI.
2022-10-06Removed duplicate image saving codesMilly
Use `modules.images.save_image()` instead.
2022-10-04Merge pull request #1550 from RnDMonkey/#1484_fix_empty_styles_patternAUTOMATIC1111
#1484 fix empty styles pattern
2022-10-04Apply prompt pattern lastMilly
2022-10-02moved no-style return outside join functionRnDMonkey
2022-10-03Merge branch 'master' into #1484_fix_empty_styles_patternAUTOMATIC1111
2022-10-02Merge branch 'master' into savingAUTOMATIC1111
2022-10-01os.path.normpath wasn't working, reverting to manual stripRnDMonkey
2022-10-01use os.path.normpath for better safety checkingRnDMonkey
2022-10-01added safety for blank directory naming patternsRnDMonkey
2022-09-30Merge remote-tracking branch 'origin/master'AUTOMATIC
2022-09-30prevent neural network resizing when it is not necessary #1109AUTOMATIC
2022-09-30fixed so that {prompt} can be anywhere in styleRnDMonkey
2022-09-30refined [styles] pattern and added [prompt_no_styles]RnDMonkey
2022-09-30repair broken highres fix #1109AUTOMATIC
2022-09-30remove unwanted formatting/functionality from the PRAUTOMATIC
2022-09-30fix the bug with broken rescaling in PRAUTOMATIC