aboutsummaryrefslogtreecommitdiff
path: root/modules/images.py
AgeCommit message (Collapse)Author
2023-06-02Simplify a bunch of `len(x) > 0`/`len(x) == 0` style expressionsAarni Koskela
2023-06-01remove redundantw-e-w
2023-06-01fix 10896 pnginfo parametersw-e-w
2023-05-31rename print_error to report, use it with together with package nameAUTOMATIC
2023-05-31Merge pull request #10808 from AUTOMATIC1111/fix-disable-png-infoAUTOMATIC1111
fix disable png info
2023-05-29Add & use modules.errors.print_error where currently printing exception info ↵Aarni Koskela
by hand
2023-05-29fix disable png infow-e-w
2023-05-27Merge pull request #10655 from fumitakayano/fumitakayanoAUTOMATIC1111
Added format to specify VAE filename for generated image filenames
2023-05-27Merge pull request #10569 from strelokhalfer/prAUTOMATIC1111
Change 'images.zip' to pattern settings
2023-05-25Remove try/except in img metadata readcatboxanon
2023-05-24Cleaner image metadata readcatboxanon
2023-05-24Changed 'images.zip' to generation by patternstrelokhalfer
2023-05-23Subject:.fumitaka.yano
Improvements to handle VAE filenames in generated image filenames Body:. 1) Added new line 24 to import sd_vae module. 2) Added new method get_vae_filename at lines 340-349 to obtain the VAE filename to be used for image generation and further process it to extract only the filename by splitting it with a dot symbol. 3) Added a new lambda function 'vae_filename' at line 373 to handle VAE filenames. Reason:. A function was needed to get the VAE filename and handle it in the program. Test:. We tested whether we could use this new functionality to get the expected file names. The correct behaviour was confirmed for the following commonly distributed VAE files. vae-ft-mse-840000-ema-pruned.safetensors -> vae-ft-mse-840000-ema-pruned anything-v4.0.vae.pt -> anything-v4.0 ruff response:. There were no problems with the code I added. There was a minor configuration error in a line I did not modify, but I did not modify it as it was not relevant to this modification. Logged. images.py:426:56: F841 [*] Local variable `_` is assigned to but never used images.py:432:43: F841 [*] Local variable `_` is assigned to but never used Impact:. This change makes it easier to retrieve the VAE filename used for image generation and use it in the programme.
2023-05-17use a single function for saving images with metadata both in extra networks ↵AUTOMATIC
and main mode for #10395
2023-05-11Autofix Ruff W (not W605) (mostly whitespace)Aarni Koskela
2023-05-11Drop fonts + font-roboto deps since we only use the single regular cut of RobotoAarni Koskela
2023-05-11Deduplicate get_font codeAarni Koskela
2023-05-10fixes for B007AUTOMATIC
2023-05-10imports cleanup for ruffAUTOMATIC
2023-05-10manual fixes for ruffAUTOMATIC
2023-05-10autofixes from ruffAUTOMATIC
2023-05-09Fix up string formatting/concatenation to f-strings where feasibleAarni Koskela
2023-05-06add denoising strength filename patternw-e-w
2023-04-29rework [batch_number]/[generation_number] filename patternsAUTOMATIC
2023-04-29Merge branch 'dev' into masterAUTOMATIC1111
2023-04-29Merge branch 'dev' into Branch_AddNewFilenameGenAUTOMATIC1111
2023-04-16Add self argument that is mandatory to [clip_skip] filename pattern.File_xor
2023-04-16Add filename pattern for CLIP_stop_at_last_layers.File_xor
2023-04-15Add new FilenameGenerator [hasprompt<prompt1|default><prompt2>..]tqwuliao
2023-04-07Add [batch_number] and [generation_number] filename patternsgk
2023-03-26for img2img, use None as upscaler instead of erroring out if the desired ↵AUTOMATIC
upscaler is not found
2023-03-25bump gradio to 3.23AUTOMATIC
fix broken image dragging
2023-03-12update `fullfn` properlyAlex "mcmonkey" Goodwin
2023-03-12add safety check in case of short extensionsAlex "mcmonkey" Goodwin
so eg if a two-letter or empty extension is used, `.txt` would break, this `max` call protects that.
2023-03-12relocate filename length limit to better spotAlex "mcmonkey" Goodwin
2023-03-11initial fix for filename length limits on *nix systemsAlex "mcmonkey" Goodwin
2023-02-24Add lossless webp optionmissionfloyd
2023-02-20convert resolution to int using round()w-e-w
2023-02-19Merge pull request #7691 from missionfloyd/16bit-convertAUTOMATIC1111
Convert 16-bit greyscale to 8-bit when saving as JPEG
2023-02-19reword settings for 4chan export, remove unneded try/excepts, add try/except ↵AUTOMATIC
for actually saving JPG
2023-02-09Use RGB for webpmissionfloyd
Doesn't support greyscale (L)
2023-02-09Convert 16-bit greyscale to 8-bit when saving as JPEGmissionfloyd
2023-02-05use Default if ValueErrorw-e-w
2023-02-05configurable image downscalew-e-w
allowing the user to configure the image downscale parameters in setting
2023-02-05adds grid margins to xyz plot and prompt matrixEllangoK
2023-02-05Add prompt_hash option for file/dir name patterntechneconn
2023-02-04add margin parameter to draw_grid_annotationsAUTOMATIC
2023-01-28Reduce grid rows if larger than number of images availableglop102
When a set number of grid rows is specified in settings, then it leads to situations where an entire row in the grid is empty. The most noticable example is the processing preview when the row count is set to 2, where it shows the preview just fine but with a black rectangle under it.
2023-01-24handling sub grids and merging into oneEllangoK
2023-01-17make it so that PNG images with EXIF do not lose parameters in PNG info tabAUTOMATIC