mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
feat: add Deep Enhance AI tier to image enhancement
When deepEnhance is true and the upscale-enhance bundle is installed, runs SCUNet (quality tier) after the Sharp pipeline for noise/artifact cleanup. Falls back gracefully to Sharp-only if sidecar is unavailable.
This commit is contained in:
@@ -900,3 +900,21 @@ describe("Large file with modes", () => {
|
||||
expect(result.processedSize).toBeGreaterThan(0);
|
||||
});
|
||||
});
|
||||
|
||||
// ── Deep Enhance ───────────────────────────────────────────────
|
||||
describe("Deep Enhance", () => {
|
||||
it("accepts deepEnhance setting and returns 200", async () => {
|
||||
const res = await postTool({ deepEnhance: true });
|
||||
expect(res.statusCode).toBe(200);
|
||||
const result = JSON.parse(res.body);
|
||||
expect(result.downloadUrl).toBeDefined();
|
||||
expect(result.processedSize).toBeGreaterThan(0);
|
||||
});
|
||||
|
||||
it("works without deepEnhance (default false)", async () => {
|
||||
const res = await postTool({});
|
||||
expect(res.statusCode).toBe(200);
|
||||
const result = JSON.parse(res.body);
|
||||
expect(result.downloadUrl).toBeDefined();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user