What is a clipping mask? Cropping artwork without deleting it

Published , by the PrintBlob team.

A clipping mask is a shape placed over an image or object so that only the part inside the shape shows; the rest is hidden but not deleted. A photo clipped to a circle shows a round photo, and the corners are still in the file, just not drawn.

Designers use clips to crop a photo to a badge shape, to cut a pattern to a letter, and to stop artwork spilling past the edge of a print area.

Clip and mask are different

The Inkscape manual separates the two. A clip hides every part of the lower object that lies outside the clip object: it is a hard edge, in or out. A mask works by tone instead: darker or more transparent parts of the mask make the masked object more transparent, and a white mask behaves like a clip. To set a clip in Inkscape, the clip object is placed above the target, both are selected, and Object, Clip, Set is chosen; the top object then becomes invisible and hides what lies outside it.

Other programs use different words. Layer masks in raster editors, such as GIMP’s, are grayscale images attached to a layer that control its transparency. Whatever the name, the effect is the same: appearance is changed, the data is not.

What goes wrong in print

  • Hidden content still travels. A clipped photo may still hold its full area. A later edit, or another program, can bring it back into view. Release or expand the clip, then trim to what you want, before you send a file.
  • A soft mask is partial transparency. A mask with grey tones makes semi-transparent pixels, which DTF and some other methods handle poorly; our DTF requirements guide explains the problem with shadows, glows and fades.
  • Transparency in a PDF. Gelato’s PDF requirements recommend flattening all transparencies in print-ready files, since a printer’s software may handle them unpredictably. See flattening.
  • A clip is not a print area. Artwork clipped to a shape is still placed relative to the artboard and the print area, so check position.

How to check

  1. Select the clipped object and see whether its bounding box extends beyond what shows.
  2. Release the clip temporarily and look at what was hidden.
  3. Export a PNG at the print size and check that its edges are clean and the background transparent.
  4. For a PDF, preview with overprint and transparency on, if your program offers it.

Why it still matters

A clipping mask is non-destructive, so it is a good habit while designing; the destructive step comes at export, when you decide what leaves your hands. The usual advice is to keep the layered, clipped master and send a flattened copy to print. See layers.

In PrintBlob

PrintBlob does not ask a customer for a clipped file: uploads are PNG, JPEG or WebP images, single flat pictures. A PNG with a transparent background keeps its transparency, so it works like an already-applied mask. Each printed side comes out as one flat design, a transparent PNG at the print area’s size (the front’s in the free plugin, every other side’s with PrintBlob Pro). For preparing transparent logos, see print-ready t-shirt files.

Sources