mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
fix: add remove-background settings to pipeline step configurator
The pipeline step settings had an empty array for remove-background, showing "No configurable settings" even though the tool supports model selection and background color. Add AI model selector (u2net, birefnet-general-lite, birefnet-general, birefnet-portrait, bria-rmbg) and background color picker matching the standalone tool's options.
This commit is contained in:
@@ -479,7 +479,27 @@ const TOOL_FIELDS: Record<string, FieldDef[]> = {
|
||||
{ key: "background", label: "Background", type: "color", defaultValue: "#FFFFFF" },
|
||||
],
|
||||
|
||||
"remove-background": [],
|
||||
"remove-background": [
|
||||
{
|
||||
key: "model",
|
||||
label: "AI Model",
|
||||
type: "select",
|
||||
defaultValue: "birefnet-general-lite",
|
||||
options: [
|
||||
{ value: "u2net", label: "Fast (u2net)" },
|
||||
{ value: "birefnet-general-lite", label: "Balanced (general)" },
|
||||
{ value: "birefnet-general", label: "Best (general)" },
|
||||
{ value: "birefnet-portrait", label: "Portrait / Passport" },
|
||||
{ value: "bria-rmbg", label: "Products (bria)" },
|
||||
],
|
||||
},
|
||||
{
|
||||
key: "backgroundColor",
|
||||
label: "Background color",
|
||||
type: "color",
|
||||
defaultValue: "",
|
||||
},
|
||||
],
|
||||
favicon: [],
|
||||
"color-palette": [],
|
||||
"barcode-read": [],
|
||||
|
||||
Reference in New Issue
Block a user