To remove an unwanted border from an Affinity JPEG export on Mac, first identify whether it is empty canvas, an export background color, or edge fringing. Crop excess canvas, adjust Matte for an opaque background, or use PNG when transparency is required.

These instructions follow the current Affinity desktop Help Center and its Studio-based interface. The task is to produce one image with the intended edges and background; each correction below addresses a different reason a border can appear.

What kind of border is appearing?

Start by reopening the exported JPEG in Affinity and comparing it with the editable document. Inspect the whole image, then enlarge the affected edge. This comparison helps establish whether you need to change the export area, the output background, or pixels within the artwork.

What you see What to investigate Appropriate correction
A rectangular band outside the intended image Excess canvas or the wrong export area Crop the canvas or choose the intended export area
A solid background around a shape that should have transparent surroundings JPEG’s transparency limitation Use PNG, or deliberately choose an opaque background
A thin light fringe following a cutout’s contour Residual light edge pixels Consider Remove White Matte on the cutout
A border already visible inside the original artwork Existing image content Edit the source or crop it if losing that area is acceptable

This table is a diagnostic aid, not a claim that every border has one predictable cause. In particular, a rectangular margin and a fringe around a curved shape call for different corrections.

Affinity documents Matte as the exported image’s background color. It separately documents Remove White Matte as a filter for light fringing around cutouts. Sharing the word “matte” does not make these controls interchangeable. Export Settings, Remove White Matte filter

How do you remove a rectangular border and keep JPEG?

If the unwanted band occupies space outside the image you want, crop that space before exporting. Affinity’s Crop Tool changes the canvas boundary and hides content outside the crop non-destructively. Cropping and straightening images

  1. Open the editable document and enter Pixel Studio.
  2. Select the Crop Tool.
  3. Choose Unconstrained from the context toolbar’s Mode options when you need to position each edge freely.
  4. Drag the crop handles inward to exclude the unwanted band. Reposition the crop by dragging inside it.
  5. Inspect all four edges before committing, especially if the intended artwork reaches the canvas boundary.
  6. Click Apply, or press Return on Mac. These controls and actions are documented in Cropping and straightening images.

For an illustrative example, suppose a 1,240 × 840-pixel image contains a uniform 20-pixel border inside each edge. Removing those margins leaves 1,200 × 800 pixels: subtract 40 from both dimensions. This calculation assumes the border is exactly uniform; inspect the actual image rather than applying those numbers automatically.

Cropping also removes anything else within the excluded band from the exported composition. If a shape, shadow, or other intended detail extends into it, decide whether that detail should remain before applying the crop. Affinity lets you reveal cropped content again through Document > Unclip Canvas in the editable document. Cropping and straightening images

Check the export area before saving

Choose File > Export > Export, then select a JPEG preset. Check Area: use the intended document or named artboard, or select objects before exporting when the output should be based on those objects. Selection Area includes overlapping, unselected layers; Selection Only excludes them. Export dialog

A selection-based export is useful for isolating artwork, but excluding background layers does not give JPEG transparent surroundings. Check the preview for both the intended bounds and the intended background before saving.

Can you turn off Matte to make a transparent JPEG?

JPEG does not preserve transparency. Transparent regions must become opaque in JPEG output, so a transparent JPEG is not an available solution. Adobe’s documentation explicitly explains this format limitation and identifies PNG as an alternative that preserves transparency. Dynamic Media PNG assets show gray overlay when image preset is applied

If an opaque background is acceptable, find Matte in the Export dialog’s settings and choose the desired background color from its pop-up panel. Affinity documents this control for JPEG. Changing that color addresses the background appearance; it does not remove excess canvas or erase an existing border painted into an image. Export Settings

For example, a neutral geometric shape intended for a pale gray background can be exported against that gray. This is useful when the destination background is known. If the same image must work against several different colors, preserving transparency is the more suitable requirement.

Use PNG when the surroundings must remain transparent

Affinity’s supported-format documentation explicitly lists transparency support for PNG. Changing formats must be accompanied by a document that actually contains transparent surroundings. Supported file formats

  1. In the editable document, choose Document > Setup > Document Setup.
  2. Select Whole Document, enable Transparent background where available, and click OK. Affinity notes that available setup options depend on the document’s contents. Document setup (Desktop only)
  3. Inspect the artwork. A white rectangle or white pixels already present in an image require their own editing; the document background setting cannot identify them as unwanted content.
  4. Choose File > Export > Export, select a PNG preset, and inspect the preview before exporting. Export dialog

Keep cropping and transparency as separate decisions. A PNG can preserve empty transparent space around an object; choosing PNG alone does not establish the desired image dimensions.

What if the border is a thin white fringe?

Use this branch when the unwanted light line follows a cutout’s contour. Affinity describes this fringing as potentially coming from residual background color in semi-transparent edge pixels or compression blending edge pixels with the original background. Remove White Matte filter

Work on a duplicate of the affected cutout layer so you can compare the result. Select that layer, then choose Pixel > Filters > Colors > Remove White Matte. Inspect the contour against the intended background before exporting again. The filter has no customizable settings. Remove White Matte filter

The documented limitation matters: this filter works best on thin, uniform fringing. It may not fully resolve wide fringes, poor cutouts, or intricate edges. Affinity recommends selection refinement or manual mask editing when needed, and points to Remove Black Matte for dark fringing. It does not describe Remove White Matte as a tool for automatically trimming a rectangular canvas border. Remove White Matte filter

Which export controls will not solve this problem?

Avoid searching for a universal JPEG “trim transparency” switch. In the current export contract, Clip Transparency is listed for WMF, not JPEG. The separately documented JPEG behavior that converts top-level clipping curves to vector paths should not be interpreted as transparent JPEG support. Export Settings

Treat a finished JPEG as the final comparison point. In the Export dialog, Mac users can press ⌘1 to inspect the preview at 100%. To save, choose Ask for Location, click Export, name the file, choose its destination, and click Save. Then reopen that file and check the same edge that originally showed the border. Export dialog

The successful correction depends on the intended result: crop away unwanted rectangular space, choose Matte when the background should be opaque, refine a cutout when its contour is fringed, or export PNG when the surrounding area must remain transparent. Make that decision first, then verify the exported file against it.

Sources