feat(tools): remove background from animated GIFs (WebP, APNG) (#502)

Adds a dedicated remove-gif-background AI tool: removes the background from an animated GIF, WebP, or APNG frame by frame and reassembles a transparent (or composited) animation in WebP, APNG, or GIF, with full per-frame effects. Reuses the background-removal bundle. Verified end-to-end with the real rembg model.

Closes #496.
This commit is contained in:
SnapOtter
2026-07-11 19:53:00 +08:00
committed by GitHub
parent e7cfc00fe1
commit cb5db59f77
50 changed files with 2240 additions and 6 deletions
+24
View File
@@ -226,6 +226,29 @@ const BASE_TOOLS: Tool[] = [
acceptedInputs: IMAGE_INPUTS,
executionHint: "long",
},
{
id: "remove-gif-background",
name: "Remove GIF Background",
description: "AI background removal for animated GIFs, WebP, and APNG",
category: "enhance",
icon: "Film",
route: "/remove-gif-background",
modality: "image",
acceptedInputs: [".gif", ".webp", ".apng", ".png"],
executionHint: "long",
keywords: [
"gif",
"animated",
"transparent gif",
"animated webp",
"apng",
"remove gif background",
"gif background",
"animated background removal",
"transparent background gif",
"gif cutout",
],
},
{
id: "upscale",
name: "Image Upscaling",
@@ -2635,6 +2658,7 @@ export const APP_VERSION = "2.1.0";
*/
export const PYTHON_SIDECAR_TOOLS = [
"remove-background",
"remove-gif-background",
"upscale",
"blur-faces",
"erase-object",