37 Commits

Author SHA1 Message Date
Vladimir Mandic acb4e758d3 add heif/heic support
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-08-26 10:24:17 +02:00
Vladimir Mandic 61a509a7af upscaler auto-refresh on fail
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-07-16 14:09:10 +02:00
Vladimir Mandic 98a7d17207 linting
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-07-03 22:05:33 +02:00
Disty0 78243b70a4 sharpfin don't use antialias with area mode 2026-06-15 23:41:58 +03:00
QualiaRain 9f2374f5ff fix ui/misc: None desc crash, ratio/tile/lora split guards, parse_metadtaa typo, moondream type guard
Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-12 13:00:50 -04:00
Claude 77f7fc61bd Fix UnboundLocalError when resize gets an invalid upscaler name
The invalid-upscaler warning referenced selected_upscaler, which is only
assigned when a matching upscaler was found, so an unknown name (stale
infotext, removed upscaler) crashed the resize instead of falling back
to plain resampling.

https: //claude.ai/code/session_014QWKWgKvMevcuvfCnsYoT2
Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-12 02:41:34 -04:00
Vladimir Mandic 5e99dee3c2 full codespell coverage
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-06-04 12:36:10 +02:00
Vladimir Mandic 4b2f38ab7f complete refactor javascript to typescript and reorg frontend files and folders
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-05-20 18:08:10 +02:00
Vladimir Mandic f67562b912 - all guidance values set to -1 to enable using model defaults
- log default values used if not overriden by user
- rename inconsistent guidance variables:

p.cfg_scale
p.image_cfg_scale -> p.cfg_image
p.diffusers_guidance_rescale -> p.cfg_rescale
p.pag_scale -> p.cfg_true
p.pag_adaptive -> p.cfg_adaptive

Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-05-16 11:06:23 +02:00
Disty0 704bf2a756 Fix upscaler namegen 2026-05-07 01:09:28 +03:00
CalamitousFelicitousness 70630bc6b4 fix(metadata): preserve parameters and stop polluting info dict
read_info_from_image had three issues that together corrupted
metadata in the Process tab and img2img batch:

- items aliased image.info, so items.pop('parameters', ...) mutated
  the source PIL image's info dict in place
- after popping, parameters was never restored to items, so callers
  that re-stamp items onto a downstream image (postprocessing.py,
  img2img.py) silently dropped the original generation params for
  any input without EXIF UserComment
- synthetic width/height/mode keys were stuffed into items and ended
  up persisted as PNG tEXt chunks even though no caller reads them

Result for the Process tab: upscaled outputs lacked the original
parameters chunk and instead had useless width/height/mode chunks
holding the source's pre-upscale dimensions. With this fix items is
a copy, parameters is restored after parsing, and width/height/mode
no longer leak into saved files.
2026-04-25 22:10:16 +01:00
vladmandic f033eaf58a add explicit vae method=none and allow images in history
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-14 11:51:27 +02:00
vladmandic a8e535efe2 enhanced filename pattern processing
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-08 08:32:32 +02:00
Vladimir Mandic 999cbe5d3a Merge branch 'dev' into various1 2026-04-02 08:36:24 +02:00
vladmandic 61c10d6591 update diffusers and transformers
Signed-off-by: vladmandic <mandic00@live.com>
2026-03-31 16:34:28 +02:00
awsr 3dd09fde08 Syntax change 2026-03-30 20:09:02 -07:00
awsr 59b9ca50ee Guard against divide by zero and out-of-bounds 2026-03-29 01:25:22 -07:00
awsr eeb9b6291b Update typing + enforce variable not unbound + import sort 2026-03-28 19:27:45 -07:00
awsr 8d6ec348b2 Refactor get_grid_size
Type safe, avoids redefining parameter types, and the static type checker is able to parse it easily.
2026-03-28 19:18:55 -07:00
awsr a1b03a383c Upgrade Grid to typed NamedTuple 2026-03-28 19:17:59 -07:00
vladmandic b90558430e fix grid
Signed-off-by: vladmandic <mandic00@live.com>
2026-03-25 09:11:31 +01:00
vladmandic 400d284711 fix metadata parser
Signed-off-by: vladmandic <mandic00@live.com>
2026-03-25 07:32:37 +01:00
awsr fd1646cc37 Revert extra return statement 2026-03-24 06:28:39 -07:00
awsr 2d81bcdc69 RUF013 updates + type fixes 2026-03-24 04:12:14 -07:00
vladmandic 12fd4d30f1 fb merge phase 2
Signed-off-by: vladmandic <mandic00@live.com>
2026-03-16 08:09:07 +01:00
vladmandic f4ec0bab4a merge: modules/image/metadata.py 2026-03-13 13:17:58 +01:00
vladmandic 20e8b8ab18 add upload api endpoint
Signed-off-by: vladmandic <mandic00@live.com>
2026-03-09 16:02:05 +01:00
vladmandic 2da67ce7d3 cleanup and fix monitor
Signed-off-by: vladmandic <mandic00@live.com>
2026-02-28 12:31:09 +01:00
Vladimir Mandic f78f0eb4a5 refactor imports 2026-02-19 15:28:24 +01:00
Vladimir Mandic 4006b3e093 pylint 2026-02-19 11:36:20 +01:00
Vladimir Mandic e5c494f999 cleanup logger 2026-02-19 11:09:13 +01:00
Vladimir Mandic a3074baf8b unified logger 2026-02-19 09:46:42 +01:00
Vladimir Mandic bfe014f5da modernize typing 2026-02-19 09:15:37 +01:00
Vladimir Mandic 6fdd3a53cf reduce mandatory requirements
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-02-18 17:53:08 +01:00
vladmandic ae8a6257c4 typo
Signed-off-by: vladmandic <mandic00@live.com>
2026-02-12 10:37:40 +01:00
vladmandic cf5e1e0df2 cleanup convert
Signed-off-by: vladmandic <mandic00@live.com>
2026-02-11 18:09:57 +01:00
vladmandic da1cf2f996 refactor image methods
Signed-off-by: vladmandic <mandic00@live.com>
2026-02-11 12:29:00 +01:00