Skip to content
Professional training for organizations since 2008
info@jfl-media.com1-866-259-5647
JLJFL MEDIATRAININGBook a conversation

JFL Media · Affinity tutorials

How do you remove a background in Affinity without erasing the subject?

Pixel · photoBeginner15 minutes of practice, approximatelyAffinity for desktop · Windows and macOS

Direct answer

In Pixel, select the subject, refine its edges and turn the selection into a mask instead of erasing pixels. The mask hides the background while preserving the original image. Check the cut-out against both a light and a dark background before exporting it as a transparent PNG.

Written by JFL Media

Before you start

Difficulty depends on the photograph. A sharply defined product on a plain background is easier than hair against a busy scene. Start with a large enough image and a clearly separated subject. Aim for a believable edge rather than forcing every transition into a hard outline.

Version note

In Affinity Photo V2, use Photo Persona’s selection and masking tools. In the current application, work in Pixel; selection commands may be grouped differently.

An object on a coloured background is paired with a black-and-white mask and then shown over a transparency checkerboard.
An object on a coloured background is paired with a black-and-white mask and then shown over a transparency checkerboard. Original JFL Media learning illustration: an explanatory diagram, not an interface screenshot.

The method, step by step

Technical references: Sources and version notes.

  1. Prepare the image

    Open your photograph and save an Affinity working document. Select the image you intend to cut out in Layers. Preserve the original so you can revise the work later.

  2. Select the subject

    Use the Selection Brush Tool in Pixel. Paint over the subject in small areas, then use add and subtract modes to correct missed or unwanted regions.

  3. Refine the necessary edges

    Open Refine from the selection options. Inspect hair, fibres and soft edges. Choose a brush size suited to the detail rather than treating every edge as a complicated one.

  4. Create a mask

    Choose Mask as the refinement output where appropriate. Confirm that the resulting mask is attached to the intended image rather than another document element.

  5. Retouch the mask

    Select its thumbnail before painting. Black hides, white reveals and grey creates partial transparency. Use a small brush on local defects instead of changing the entire outline.

  6. Test and export

    Temporarily place a light background and then a dark background below the subject to reveal halos. Hide these test backgrounds before PNG export and check the resulting file’s transparency.

Practice exercise

Photograph a simple object against a contrasting background. Make a mask and place the subject on two different backgrounds. Record three visible defects and correct only those areas. Save the mask in the working file.

How do you check the result?

  • No important part of the subject is missing.
  • Edges do not show excessive halos.
  • Test background layers are hidden for transparent export.

Mistakes to avoid

Erasing the background directly

An eraser changes layer pixels. A mask lets you recover hidden areas without finding an older copy.

Painting on the image rather than the mask

Check which thumbnail is selected before each correction; otherwise, you may paint directly on the subject.

Related questions

Why is there a white outline around the cut-out?

The selection may include too much background, or edge pixels may contain background colour. Revisit the selection, refinement and mask against a contrasting background.

Does a mask automatically produce a transparent PNG?

Other layers or the document background can still make the area opaque. Check the exported file by placing it in another document.

Affinity questions & answers →

Sources and version notes

Official technical references consulted on November 29, 2026. Examples and exercises are provided by JFL Media. Interface labels and command locations can vary with the software version and language.

  1. Affinity Help Center — Painting pixel selections
  2. Affinity Help Center — Refining pixel selection edges
  3. Affinity Help Center — Layer masking

JFL Media is an independent training provider. Product names and trademarks belong to their respective owners.