Skip to content

Add mask refinement with edge cleanup and undoable output - #138

Merged
IAmJSD merged 6 commits into
mainfrom
t3code/feature-mask-refinement
Sep 19, 2026
Merged

IAmJSD merged 6 commits into
mainfrom
t3code/feature-mask-refinement

Conversation

@IAmJSD

@IAmJSD IAmJSD commented Sep 19, 2026 •

Copy link
Copy Markdown
Member

Select → Refine Mask opens a workspace for improving an active selection or existing layer mask. It offers image-guided edge refinement, smoothing, edge expansion/contraction, feathering, color halo removal, contrast backgrounds, and an original-mask comparison.

Apply writes a nondestructive mask in one undoable edit. Color halo removal instead creates a corrected raster copy and preserves the original. Full-resolution work uses overlapping bounded blocks, supports cancellation, and rejects stale results. This PR also counts retained masks and layer/source snapshots toward the undo memory budget.

Validation:

  • make check-mask-refinement: 14 refinement regressions plus two undo-memory regressions, followed by the editor check.
  • make lint-app, make check-i18n, and make check-app-web on this standalone branch.
  • Native GUI smoke check in the integrated build: refine a selection, apply a feathered mask, and undo the entire change.

Color halo removal supports RGB rasters; native CMYK/Lab layers support mask-only refinement. Preview sampling and memory bounds are described in docs/mask-refinement.md. The new catalog is translated in all 149 non-English locales, including generated aliases.

Translations were authored and separately reviewed by GPT-5.6 Sol agents. The locale audit includes short labels, preserved placeholders and numeric limits, and channel direction. make check-i18n validates the updated standalone branch, including font coverage and locale aliases.

@IAmJSD
IAmJSD merged commit 6634b54 into main Sep 19, 2026
5 checks passed
@IAmJSD
IAmJSD deleted the t3code/feature-mask-refinement branch September 19, 2026 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant