Studio Yotsuba
Back to Node List

Silhouette Cleanup

silhouette_cleanup

Cleans L-shaped corners on an image alpha silhouette

Reviewed
Guide available

Input Ports

NameTypeDescription
Image
input
Image
Required
Image to clean up
Editable Area
permission_mask
Image
Optional mask that limits which corner pixels may change. White permits cleanup; black or transparent pixels protect the input. Corner detection still inspects the complete silhouette.

Output Ports

NameTypeDescription
Image
output
Image
Cleaned image

Parameters

NameTypeDefaultRangeDescription / Options
Editable Area
editable_area
Enum
Inside—

Which side of the connected mask may be changed. Use Inside for a selected limb or accessory, or Outside to protect a face and other delicate shapes. This setting has no effect until a mask is connected.

  • InsideInside
    Change only corner pixels where the Editable Area mask is white and opaque
  • OutsideOutside
    Protect the white area and change only corner pixels outside it
Alpha Threshold
threshold
Float
0.50–1 / step 0.01

Alpha used to decide the silhouette. Start at 0.5; lower it to include soft edge pixels, or raise it when faint pixels create unwanted corners.

Cleanup Mode
cleanup_side
Enum
OpaqueSide—

Choose whether to trim the opaque silhouette or fill transparent corner gaps

  • OpaqueSideOpaqueSide
    Trim protruding L-corners on the opaque silhouette side
  • TransparentSideTransparentSide
    Fill missing L-corner holes on the transparent side

Overview

Cleans up L-shaped steps in a silhouette—the protrusions and chips that appear on diagonal lines and corners. It is a finishing node that makes pixel-art outlines look closer to carefully hand-placed pixels.

Usage tips

  • It affects only the alpha shape, not color steps inside the artwork. Fix those by hand or with color-reduction tools.
  • Start with OpaqueSide (remove protrusions). If the shape becomes too thin, switch to TransparentSide (fill chips).
  • Place it before outline to reduce irregularities in the outline.
  • Split responsibilities with pixel_cleanup (isolated pixels and holes): that node handles dots; this one handles corners.

Related nodes

  • pixel_cleanup — clean up isolated 1px artifacts
  • outline — add an outline after cleanup
  • path_stroke — for path-derived shapes, start with pixel-perfect rendering

When to use it

  • When you want to clean up L-shaped steps in an alpha silhouette at 1px diagonal lines and corners
  • When you want to remove or fill small parts of a silhouette in an image that did not come from a path
  • When you want to clean the source-image silhouette itself rather than choose the inside or outside of a band such as Outline

Notes

  • This is not exact pixel-perfect correction derived from vector paths.
  • It binarizes image alpha and applies raster correction to that silhouette.
  • It is therefore not a substitute for "true pixel perfect" processing on general images.
  • In other words, changing only the colors inside does nothing. It takes effect only when the alpha silhouette changes.
  • It is normal for a perfect square or rectangle with no L-shaped corners to remain unchanged.
  • Correction Mode = Opaque Side removes L shapes protruding from the filled silhouette.
  • Correction Mode = Transparent Side fills corner chips on the transparent side with neighboring colors.
  • This organizes shapes based strictly on the alpha silhouette, not color boundaries.

Examples

  1. Clean up L-shaped noise that appears only at the corners of a pixel-art character.
  2. Clean the source image before Outline to reduce broken outlines.
  3. Make diagonal lines and rounded 1px silhouettes look more like pixel art.
Back to Node List