You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Custom Parts 4: plain PNG import and derived editing #1219
A Human brings in pixel art from other tools and builds on existing parts. A plain PNG of a slot's size imports as a Custom Part with fixed colors after the Human sees its color count. Any built-in part or someone else's part can be opened as a starting canvas and saved as a new part that records its parent and keeps the original author's name.
Acceptance criteria
A plain PNG matching a slot canvas imports with a bounded color count, using nearest-color quantization and no dithering. Transparent pixels stay empty.
The color count is shown before the Human accepts, and "reduce palette" stays separate from "remap pixels".
Imported plain-PNG cells are fixed colors. The Human can then remap cells to appearance color slots and tones in the editor.
Wrong-sized, oversized or over-colored images are refused with a clear message.
Opening a built-in part flattens it to cells for the current recipe, with a visible note that it keeps this shape and no longer adapts to face shape or hair length.
Opening someone else's part and saving creates a new part whose metadata records the parent ID and the original author. The original is unchanged.
Derived and plain-PNG parts show their origin in the Part Library filter.
Tests cover quantization bounds, refusal cases, built-in flattening and parent/author metadata on derived parts.
Activity
feat(avatar): flatten a built-in headpiece into a Custom Part
DoodleBears commentedon Oct 9, 2026
进度交接:实现已提交,还没开 PR。分支是
claude/festive-gauss-gv7xu2-1219(commit11ff9ab),叠在 #1246(#1217)之上。已完成:
packages/core/src/bots/part-image.ts,最大 1 MB,缩放最多 ×16,最多 256 色,按出现次数量化成部件色板partLibraryImportImagederived和imported-image,并记录parentAuthorreplace工具part-image.test.tsdocs/assets/pr/1219-png-import/剩下的事:
git rebase --onto origin/main d8cb5c7Generated by Claude Code
Import plain PNG pixel art and derive parts from others' parts
Import plain PNG pixel art and derive parts from others' parts
Import plain PNG pixel art and derive parts from others' parts (#1252)
DoodleBears commentedon Oct 9, 2026
结果:completed。分支 rebase 到
main后,PR #1252 已 squash merge(ce559a8)。CI 中managed-git.test.ts的超时切源用例第一次失败,重跑后通过,与本 PR 无关。无剩余范围。Generated by Claude Code