feat: --solid-background + agent-customization flags#44
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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