feat(image-manipulator): fix inpainting mask offset, add background job governance with time limit, split view and enterprise presets

This commit is contained in:
2026-10-27 15:45:26 +05:30
parent 29d755b645
commit 550d7e23c4
10 changed files with 3034 additions and 399 deletions
+11
View File
@@ -649,5 +649,16 @@ func NewRouter(pm *ProcessManager) http.Handler {
http.Error(w, "Image manipulator not found", http.StatusNotFound)
})
r.HandleFunc("/api/jobs/*", func(w http.ResponseWriter, req *http.Request) {
_ = pm.EnsureRunning(req.Context(), "image-manipulator")
cfg := pm.getConfig("image-manipulator")
if cfg != nil {
proxy := toolProxy(pm, "image-manipulator", cfg.Port)
proxy.ServeHTTP(w, req)
return
}
http.Error(w, "Image manipulator not found", http.StatusNotFound)
})
return r
}