Paint Mask
Paint a mask by hand over any image, or refine a generated one, and send it to every node that takes a mask. White is edited, black is kept. Free.
The Paint Mask node lets you paint a mask by hand over an image and use it anywhere a mask is accepted. You brush over the area to change, and the node outputs a black-and-white PNG: white is edited, black is kept. The node never runs a model and costs no credits.
When to use it
- Mark an exact area to repaint in Modify Image, when a text description cannot find it.
- Fix a mask from Generate Mask that is almost right.
- Share one mask between several nodes, for example Modify Image and Relight & Switch.
- Keep a mask as part of a workflow. The mask is saved with the workflow, its exports and node presets.
Quick start
Add the node
Press Tab on the canvas and choose Image › Edit & Retouch › Paint Mask.
Connect the image
Drag from an image node to the Image input. This is the picture you paint over.
Paint the mask
Double-click the node, or click Paint mask on it, to open the Mask editor. Brush over the area to change, then click Save mask. The node shows how much of the image is masked.
Connect the mask
Drag from the Mask output to the Mask input of an editing node. Wire the same image into that node's Image input.
Inputs
| Input | Accepts | What it does |
|---|---|---|
| Image | Image nodes, such as Upload Image, Generate Image and Modify Image | The picture to paint over. The mask is painted at the full resolution of this image. Required to open the editor. |
| Mask seed | Mask outputs, such as the Mask output of Generate Mask | Optional. A mask to start from: the editor opens with it, and you add or erase areas. |
The output, Mask, is the painted PNG, at the full resolution of the image. White areas are edited and black areas are kept. It is a plain PNG, so it also works anywhere an image is accepted.
The Mask editor
| Control | What it does |
|---|---|
| Brush (B) | Paints the area to change. |
| Erase (E) | Removes paint: the area is kept. |
| Shape (L) | Click points around an area. Click the first point again, or double-click, to close the shape and fill it. |
| Size | The brush size, from 4 to 200 px. [ and ] make it smaller and larger. |
| Hardness and Flow | How soft the brush edge is and how strongly each stroke paints. Soft or light strokes paint gray, which blends the edit into its surroundings. |
| Select all, Invert and Clear | Mark the whole image, swap the marked and kept areas, or remove all paint. |
| Feather | Softens the edges of the whole mask. |
| overlay, mask, source | Show the mask over the image, the mask alone, or the image alone. |
| Undo and redo | Ctrl+Z and Ctrl+Y. |
The editor shows the share of the image that will be regenerated, as a percentage. Click Save mask to keep your work.
Settings
| Setting | What it does |
|---|---|
| Default brush | The Size and Hardness the brush starts with each time you open the editor. |
| Label | The node's name on the canvas. |
On the node itself, Edit mask reopens the editor, Clear mask removes the mask, and Download mask saves the PNG.
Where the mask goes
Any input that accepts a mask can take it:
- Modify Image, on a model that supports masks, such as Ideogram Edit. See Modify Image.
- Relight & Switch. See Relight & Switch.
White means "edit" and black means "keep" everywhere in Nodaro, so a mask from Paint Mask and a mask from Generate Mask are interchangeable.
Good to know
- A mask fits one image. The mask is painted at the resolution of the image it covers. If you wire a different image into the editing node, repaint the mask.
- Saved masks do not follow upstream changes. When upstream nodes run again, the node keeps the last mask you saved. Check that it still matches the new image.
- Gray blends. Soft, gray areas of the mask are blended by the editing node, which is useful for smooth transitions.
- No credits. Paint Mask never runs a job, so it never costs credits.
Frequently asked questions
Related
Generate Mask
Modify Image
Relight & Switch
Upload Image
Last updated on
Generate Mask
Describe a subject in plain words, such as "the red car", and get a black-and-white mask of it to repaint only that area in an editing node.
Image Collage
Arrange up to 30 images into one 2K or 4K picture with a smart or grid layout. Add numbers and labels to turn a batch of shots into a storyboard.