Repository navigation
Releases
rasterless 0.2.0
Object layers. The SVG is now built the way a designer builds one:
- Each shape is its own layer, so two eyes are two layers even when they share a color.
- A shape that sits inside another's outline goes on top of it (eyes on a face, a window on a rocket). The shape underneath is completed, so a face is a full circle with no holes cut for the eyes.
- Layers get ids (
l1at the bottom). With--preview, a numbered layer map is saved next to the preview. - Object plans. The skill tells your AI to look at the layer map, decide the real objects and groups the way a designer would, and convert again with
--objects plan.json. A plan lists objects back to front, each with a name, a group, and its map layers.pointssplit one layer between two objects (ears and a face in one skin color), anddropmakes background seen through a gap see-through. The SVG gets one<g>per group and the AI's names as ids. Parts the plan left out are marked?on the new map. --gridsaves the input on a coordinate grid, for the pixel positions a plan'spointsneed.- Most files got smaller, because each layer now reaches only under its neighbors: the samples shrank by 52% in total (the juggler from 75 KB to 17 KB).
- Specks too small to trace join the nearest layer instead of becoming empty layers.
--by-colorgives the 0.1 output, one path per color, byte for byte.scipyis now a dependency ofrasterless.py. Without it, the script falls back to one path per color and says so.- Without
resvg-py, the check and the preview use a built-in renderer, so they work in web chat sandboxes with no network. The report saysbuilt-in renderer.
Tested on 140 designer-made icons from 14 open sets that were not used while building it, each as a 512 px PNG, a 128 px PNG, a JPG, and a 128 px WebP. The share of designer shapes that come back as one layer is 48%, 46%, 46%, and 36%, against 38%, 34%, 35%, and 29% with one path per color. With a flawless plan built from the designer's file it is 75%, 71%, 72%, and 57%, with every overlapping pair stacked in the designer's order. Plans written by an AI on 14 of the icons matched 48% and stacked 87% of overlapping pairs right, against 55% without a plan. One test icon fails at about 15% mismatch, from a tracing bug that predates 0.2. tests/layers/check_layers.py takes a folder, --size, --format, --oracle, and --plans.
rasterless 0.1.1
Fixes:
--colors Non a JPG or other opaque image no longer counts the background as one of the N colors.--colors 1on a mono JPG used to return the background.- A file that cannot be read no longer stops a batch. It is reported as failed, the rest are converted, and the run exits with code 1.
- Inputs with the same name in one batch (
logo.pngandlogo.jpg) no longer overwrite each other. The second becomeslogo-jpg.svg. - Empty images (fully transparent, or one solid color) are skipped with a message instead of crashing or producing a filled square.
- App icons with rounded transparent corners are detected as transparent. With
--keep-bg, the corners used to turn black. - Photos with an EXIF rotation tag are turned upright before tracing.
- Shaded mode traces inputs above 2048 px at their own size, which makes them several times faster and uses far less memory.
- Shaded SVGs use ids prefixed with the file name, so several of them can be inlined in one HTML page.
Added:
- A folder works as an input:
rasterless.py icons/ -o svg/. tests/check_samples.py, a regression check over the samples.
rasterless 0.1.0
First public release. PNG to SVG with AI.
What's in it
- Flat art tracing (
rasterless.py): icons, logos, emoji, and flat illustrations become one path per color with sub-pixel edges and no hairline gaps. Every result is drawn back and checked, with misses marked in red. Up to 24 colors by default,--colors Nfor more. - Shaded mode (
rasterless_shaded.py): grayscale 3D art as stacked gray bands, with glossy balls rebuilt as real radial gradients (--spheres). - Works in your AI: a Claude Code plugin, plus an uploadable skill for Claude.ai, ChatGPT, and Codex. The tracer is bundled, so web sandboxes need no installs.
Install
- Claude Code:
/plugin marketplace add dheerajponnaganti/rasterless, then/plugin install rasterless@dheeraj-skills - Claude.ai and ChatGPT: upload
rasterless.zipfrom this release - Codex:
$skill-installer install https://github.com/dheerajponnaganti/rasterless/tree/main/skills/rasterless
Samples, commands, and benchmarks are in the README.