feat: add support for WebP images in Ollama's app

This commit is contained in:
Daniel Alejandro Coll Tejeda
2025-11-05 21:23:20 +01:00
parent 408c2f99d0
commit bddfa2100f
4 changed files with 116 additions and 3 deletions

View File

@@ -282,7 +282,7 @@ func (w *Webview) Run(path string) unsafe.Pointer {
"go", "rs", "swift", "kt", "scala", "sh", "bat", "yaml", "yml", "toml", "ini",
"cfg", "conf", "log", "rtf",
}
imageExts := []string{"png", "jpg", "jpeg"}
imageExts := []string{"png", "jpg", "jpeg", "webp"}
allowedExts := append(textExts, imageExts...)
// Use native multiple file selection with extension filtering