]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
ui: Add max image size option (#22849)
authorstduhpf <redacted>
Wed, 20 May 2026 22:00:09 +0000 (00:00 +0200)
committerGitHub <redacted>
Wed, 20 May 2026 22:00:09 +0000 (00:00 +0200)
commit3a479c9132072815cb70a443b4efa45bb66b3f59
tree7247c8c2732ff07911fac375c87d651d4868ffde
parentad277572619fcfb6ddd38f4c6437283a4b2b8636
ui: Add max image size option (#22849)

* webui: Add max image size option

* remove magic numbers

* support all image formats

* use const

* Move regex to match b64 images to constants

* use SETTINGS_KEYS to get max image resolution setting

* Do not touch the image if already under the size threshold
tools/ui/src/lib/constants/image-size.ts [new file with mode: 0644]
tools/ui/src/lib/constants/settings-keys.ts
tools/ui/src/lib/constants/settings-registry.ts
tools/ui/src/lib/constants/uri-template.ts
tools/ui/src/lib/services/chat.service.ts
tools/ui/src/lib/stores/agentic.svelte.ts
tools/ui/src/lib/utils/cap-img-size.ts [new file with mode: 0644]