Masking
12 min
masking lets you define specific areas of an image for a workflow to affect, so you can edit, regenerate, or remove just the regions you choose instead of changing the whole image it powers inpainting, object removal, background replacement, and other targeted edits overview instead of applying changes to an entire image, masking lets you select only the regions you want to edit, regenerate, or remove masks are commonly used for inpainting, object removal, background replacement, and other targeted image editing workflows example workflows for face swap using the mask editor to create a mask step 1 open the workflow upload or select an image in your workflow right click the image input and select open mask editor step 2 create your mask once the mask editor opens, use the brush tool to paint over the areas you want to modify the painted area represents the portion of the image that will be affected by the workflow you can continue painting and adjusting the mask until the desired area is selected step 3 save the mask after creating your mask, click save the mask will be attached to the image and passed to any workflow nodes that support masking these workflow demonstrates how masks can be used to control which parts of an image are edited while preserving the surrounding content step 4 run the workflow click the play button in the bottom toolbar to start processing once the workflow completes, the generated image will be available in the outputs folder key concept the painted area is the part that gets changed everything you leave unpainted is preserved keep this in mind so you mask the region you actually want the workflow to edit common use cases inpainting inpainting uses a mask to regenerate or replace content within a selected area of an image this is commonly used to remove unwanted objects, replace specific elements, fix imperfections, or make localized edits while preserving the rest of the image recommendation for workflows floyo flux kontext inpainting https //www floyo ai/workflows/flux kontext inpainting qjlg59hoii7d floyo flux kontext inpainting https //www floyo ai/workflows/flux kontext inpainting qjlg59hoii7d floyo flux inpaint ultimate workflow https //www floyo ai/workflows/flux inpaint ultimate workflow tla7icaj1shn floyo inpainting with reference image https //www floyo ai/workflows/inpainting with reference image xj4va4x1tw3x floyo image inpainting with lora https //www floyo ai/workflows/image inpainting with lora icijjtcrf11u flux 2 klein 9b — image inpainting https //www floyo ai/workflows/image inpainting with lora icijjtcrf11u for more info you can also visit our use case page outpainting outpainting extends an image beyond its original boundaries by defining the areas that should be generated, you can expand backgrounds, create wider compositions, or add additional scene content while maintaining consistency with the original image recommendation for workflows floyo wan2 1 and vace for video to video outpainting https //www floyo ai/workflows/wan2 1 and vace for video to video o zi8z2a3ttjhy floyo flux fill dev image outpainting https //www floyo ai/workflows/flux fill dev image outpainting 4cshlu0gnbt7 floyo flux 2 klein 4b for image outpainting https //www floyo ai/workflows/flux 2 klein 4b for image outpaintin 9kg88ecsdrj1 for more info you can also visit our use case page background replacement masks can be used to isolate a subject from its surroundings, allowing you to replace the background with a completely new scene this is useful for product photography, portraits, marketing assets, and creative image generation recommendation for workflows floyo vertical video background & scene rebuild https //www floyo ai/workflows/vertical video background scene rebu 2ihieoidcil8 tips paint slightly beyond the edges of the object for smoother results use a smaller brush size when working on detailed areas review your mask before saving to ensure only the intended regions are selected complex edits often produce better results with clean and accurate masks