fix(agent): flatten transparency onto white before RGB #148
Reference in New Issue
Block a user
Delete Branch "dev"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
First-run polish: transparent palette images (character PNGs on a clear background) were going through a naive
convert('RGB'), letting PIL guess the transparent pixels (black-ish artifacts → bleed into the crop + embedding, plus the "should be converted to RGBA" warning).to_rgb()composites over white first. Used by stills + video frames. Triggers abuild-agentrepublish.🤖 Generated with Claude Code
A naive convert('RGB') on a palette-with-transparency image (common: character PNGs on a clear background) lets PIL guess the transparent pixels — black-ish artifacts that bleed into the crop + the CCIP embedding (and the "should be converted to RGBA" warning). to_rgb() composites over white first for a clean, consistent background; used by both stills and video frames. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ttrj5P7upUTueSfoJcxEqa