Skip to content

feat(UI): add Inpaint Mask as drag & drop target on canvas#8942

Merged
lstein merged 4 commits into
invoke-ai:mainfrom
Pfannkuchensack:enhancement/drop_inpaint_mask
Apr 5, 2026
Merged

feat(UI): add Inpaint Mask as drag & drop target on canvas#8942
lstein merged 4 commits into
invoke-ai:mainfrom
Pfannkuchensack:enhancement/drop_inpaint_mask

Conversation

@Pfannkuchensack
Copy link
Copy Markdown
Collaborator

Summary

Add Inpaint Mask as a 5th drag & drop target on the canvas. The grid layout changes from a 2x2 quadrant to a 6-column grid with 2 zones on top and 3 on the bottom:

┌─────────────────────┬─────────────────────┐
│    Raster Layer     │   Control Layer     │
├──────────────┬──────┴───────┬─────────────┤
│ Regional Ref.│ Inpaint Mask │Resized Ctrl │
└──────────────┴──────────────┴─────────────┘

The backend handler (createNewCanvasEntityFromImage) already supported inpaint_mask — this PR just wires up the UI drop zone.

Related Issues / Discussions

Closes #8843

QA Instructions

  1. Drag an image from the Gallery onto the Canvas
  2. Verify 5 drop zones appear (2 top, 3 bottom)
  3. Drop onto "New Inpaint Mask" and confirm a new Inpaint Mask entity is created with the image

Merge Plan

No special considerations — single file change, no migrations needed.

Checklist

  • The PR has a short but descriptive title, suitable for a changelog
  • [] Tests added / updated (if applicable)
  • [] ❗Changes to a redux slice have a corresponding migration
  • [] Documentation added / updated (if applicable)
  • Updated What's New copy (if doing a release after this PR)

@github-actions github-actions Bot added the frontend PRs that change frontend files label Mar 6, 2026
@Pfannkuchensack
Copy link
Copy Markdown
Collaborator Author

image

@lstein lstein enabled auto-merge (squash) April 5, 2026 18:27
@lstein lstein merged commit 471ab9d into invoke-ai:main Apr 5, 2026
13 checks passed
@Pfannkuchensack Pfannkuchensack deleted the enhancement/drop_inpaint_mask branch April 5, 2026 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend PRs that change frontend files v6.13.x

Projects

Status: 6.13.x Theme: MODELS

Development

Successfully merging this pull request may close these issues.

[enhancement]: Drag & Drop directly as Inpaint Mask

3 participants