Skip to content

Should I compress a color-coded approval mask like an ordinary photo thumbnail?

Keep machine-readable labels and approval regions in a lossless form. A lossy preview can look similar to a human while its edges contain intermediate colors that change how a downstream script classifies pixels.

KEEP THE INTENDED APPEARANCEAISwapLab team · Editorial methodPublished 2 min read
Try the workflowExplore 67 Image Skills4.44 free welcome credits · No subscription

Identify the data contract

Record which color or integer identifies each protected or approved region. Include the value for background.

Test the files differently

Reopen the thumbnail as a visual asset. For the actual mask, decode it and compare exact values with the expected set. Around a sharp two-color edge, look for extra values that were absent in the source.

Use separate deliverables

Save a visual preview independently of the machine-readable mask. Avoid extracting a processing mask from a screenshot of the overlay.

Pass condition

The exact label file preserves every required value while the preview remains convenient to inspect.

Sources

Your video. Your characters.

Choose a scene, check the people, then add your photos.

Try the workflow