Fooocus/modules
Manuel Schmid b6d23670d8
feat: add jpg and webp support, add exif data handling for metadata (#1863)
* feature: added flag, config and ui update for image extension change #1789

* moved function to config module

* moved image extension to webui via async worker. Passing as parameter to log and get_current_html_path functions per feedback

* check flag before displaying image extension radio button

* disabled if image log flag is passed in

* fix: add missing image_extension parameter to log call

* refactor: change label

* feat: add webp to image_extensions

supported image extemsions: see https://pillow.readthedocs.io/en/stable/handbook/image-file-formats.html

* feat: use consistent file name in gradio

returns and uses filepaths instead of numpy image by saving to temp dir
uses double the temp dir file storage on disk as it saves to temp dir and gradio temp dir when displaying the image, but reuses logged output image

* feat: delete temp images after yielding to gradio

* feat: use args temp path if given

* chore: code cleanup, remove redundant if statement

* feat: always show image_extension element

this is now possible due to image extension support in gradio via https://github.com/lllyasviel/Fooocus/pull/1932

* refactor: rename image_extension to image_file_extension

* feat: use optimized jpg parameters when saving the image

quality=95
optimize=True
progressive=True

* refactor: rename image_file_extension to output_format

* feat: add exif handling

* refactor: code cleanup, remove items from metadata output

---------

Co-authored-by: Manuel Schmid <dev@mash1t.de>
Co-authored-by: Manuel Schmid <9307310+mashb1t@users.noreply.github.com>
Co-authored-by: Manuel Schmid <manuel.schmid@odt.net>
Co-authored by: eddyizm <wtfisup@hotmail.com>
2024-02-26 15:31:32 +01:00
..
anisotropic.py 1.0.45 (#313) 2023-09-02 06:00:20 -07:00
async_worker.py feat: add jpg and webp support, add exif data handling for metadata (#1863) 2024-02-26 15:31:32 +01:00
auth.py Blocked remote access to auth.json 2023-10-24 21:55:29 +02:00
config.py feat: add jpg and webp support, add exif data handling for metadata (#1863) 2024-02-26 15:31:32 +01:00
constants.py Blocked remote access to auth.json 2023-10-24 21:55:29 +02:00
core.py feat: add ability to load checkpoints and loras from multiple locations (#1256) 2024-02-25 12:47:14 +01:00
default_pipeline.py feat: add ability to load checkpoints and loras from multiple locations (#1256) 2024-02-25 12:47:14 +01:00
flags.py feat: add jpg and webp support, add exif data handling for metadata (#1863) 2024-02-26 15:31:32 +01:00
gradio_hijack.py try fix #815 2023-10-29 22:03:59 -07:00
html.py feat: add button to enable LoRAs (#2210) 2024-02-25 19:59:28 +01:00
inpaint_worker.py [enhance]: use opencv to rewrite morphological_open(), achieve a 40x speed increase in morphological_open opporation, for inpanting images size smaller than 3k (#2016) 2024-01-27 05:12:34 -08:00
launch_util.py fix: replace regexp to support unicode chars (#1424) 2024-02-10 19:15:57 +01:00
localization.py 2.1.808 2023-11-14 14:06:12 -08:00
lora.py 2.1.826 2023-12-12 11:38:05 -08:00
meta_parser.py feat: add jpg and webp support, add exif data handling for metadata (#1863) 2024-02-26 15:31:32 +01:00
model_loader.py 2.0.80 (#520) 2023-10-03 10:36:42 -07:00
ops.py (requested) support AMD 8GB GPUs via Windows DirectML 2023-12-30 06:30:59 -08:00
patch.py feat: advanced params refactoring + prevent users from skipping/stopping other users tasks in queue (#981) 2024-02-24 19:01:06 +01:00
patch_clip.py (requested) support AMD 8GB GPUs via Windows DirectML 2023-12-30 06:30:59 -08:00
patch_precision.py Fix many precision problems 2023-12-16 15:55:53 -08:00
private_logger.py feat: add jpg and webp support, add exif data handling for metadata (#1863) 2024-02-26 15:31:32 +01:00
sample_hijack.py (requested) support AMD 8GB GPUs via Windows DirectML 2023-12-30 06:30:59 -08:00
sdxl_styles.py feat: add array support on main prompt (#1503) 2024-02-25 22:22:49 +01:00
style_sorter.py Add Marc K3nt3L's styles 2023-12-18 19:01:52 -08:00
ui_gradio_extensions.py feat: adds preview overlay for styles (#1762) 2024-01-07 15:10:42 -08:00
upscaler.py 2.1.826 2023-12-12 11:38:05 -08:00
util.py feat: add metadata to images (#1940) 2024-02-26 14:27:57 +01:00