Skip to content

feat: --solid-background + agent-customization flags#44

Merged
realproject7 merged 1 commit into
mainfrom
task/solid-background
Jun 19, 2026
Merged

feat: --solid-background + agent-customization flags#44
realproject7 merged 1 commit into
mainfrom
task/solid-background

Conversation

@realproject7

Copy link
Copy Markdown
Owner

Adds opt-in --solid-background: isolate the subject and repaint the background as one clean solid color (removes texture/grain/specks, keeps subject detail). Demonstrated on a textured-background toony cat — background becomes a single clean yellow while the cat keeps full detail.

Also documents the composable agent-customization flags (--solid-background, --uniform-outline, --no-smooth) in the README and the vectorize skill — the intent→flags mapping that lets an agent extract exactly what a user asks for. scipy.ndimage (already a dep). Default off; suite green.

🤖 Generated with Claude Code

Adds an opt-in --solid-background / ConvertOptions.solid_background (default off):
detects the subject as the significant connected regions that differ from the
dominant corner color, repaints everything else with the median background color,
and absorbs sub-1%% specks. Removes texture/grain/streaks so the background becomes
one clean flat fill while the subject's detail is fully preserved.

On the toony_cat test (textured yellow bg): background goes to a single clean
yellow, cat detail kept (23 colors, whiskers/fur/mouth/paws), and the trace is
leaner (no background grain to vectorize). Uses scipy.ndimage (already a dep).

Also documents the composable agent-customization flags in the README and the
vectorize skill (intent -> flags: solid-background / uniform-outline / no-smooth),
which is svgsmith's competitive angle as an agent tool.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@realproject7 realproject7 merged commit d7bb0ae into main Jun 19, 2026
0 of 4 checks passed
@realproject7 realproject7 deleted the task/solid-background branch June 19, 2026 04:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant