DTG (Direct-to-Garment) printing is the most popular method for printing custom T-shirts and apparel on print-on-demand platforms. It's capable of stunning results — but it has one notorious enemy: stray pixels. A single errant pixel cluster can print as a visible smudge, halo, or coloured dot on the finished garment.
This guide explains what stray pixels are, why they appear, and exactly how to find and eliminate them before your design hits the printer.
What is DTG Printing?
Direct-to-Garment (DTG) printing works like an inkjet printer for fabric. The garment is placed flat on a platen, and the printer jets ink directly onto the textile. This allows for full-colour, photorealistic prints with no minimum order quantities — which is why it's the backbone of the POD industry.
Unlike screen printing, DTG can reproduce complex gradients, thousands of colours, and intricate details. But there's a catch: DTG printers print everything in your file, including semi-transparent pixels and near-white areas that you might not see on screen.
What Are Stray Pixels?
Stray pixels (also called fringe pixels, halo pixels, or background contamination) are pixels that appear to be transparent or background-coloured but aren't quite fully transparent. They typically appear:
- Around the edges of your main design — where the anti-aliasing algorithm blended foreground and background colours
- In areas you intended to be transparent — often left over from imprecise selections or masking
- Near colour transitions — where two elements meet and the edge isn't clean
These pixels might be nearly transparent (e.g., 2% opacity white) or a mix of your design colour and the original background. On screen, they're invisible against a white canvas. In DTG, they print as real ink on fabric.
Why Stray Pixels Appear
The most common causes:
- Anti-aliasing: When removing a background, anti-aliasing blends edge pixels between the subject and background, leaving semi-transparent fringe pixels
- Magic Wand / Select by Color selection: These tools miss pixels below the tolerance threshold, leaving nearly-transparent remnants
- Background Eraser tool: Often leaves a single-pixel fringe along complex edges
- Saving from a non-transparent background: Designing on a white canvas and later removing the white — the removal is rarely perfect at the pixel level
- AI background removal tools: Convenient but often leave subtle contamination especially on soft edges like hair or fur
- Importing from web or social media: Images compressed for screen may have blended edge pixels from previous compressions
How Stray Pixels Ruin DTG Prints
On a dark garment, stray near-white pixels become visible white dots, smudges, or halos around your design. On a light garment, they might show as a faint coloured fringe. Common visible defects:
- White halo: A faint white outline around an otherwise clean design — the most common stray pixel defect on dark shirts
- Coloured fringe: A ring of the original background colour around the design edges
- Isolated dots: Individual coloured or white pixel clusters appearing in areas that should be transparent garment
- Muddy edges: Edges that look clean on screen appear rough or smudged in print due to semi-transparent contamination
How to Detect Stray Pixels
The fastest method: Use the Check Print Ready Stray Pixel Detector. It highlights areas of your image that contain near-transparent or near-background pixels against high-contrast backgrounds — making invisible stray pixels immediately visible. It runs entirely in your browser.
Manual methods:
- Photoshop checkerboard view: Set your canvas background to checkerboard (View → Show → Transparency) and zoom into edges at 200–400%. Any non-transparent pixels will be visible against the checkerboard pattern.
- Place on a coloured canvas: Add a bright green or hot pink background layer beneath your design. Any stray pixels will show up as dots of that colour bleeding through the fringe areas.
- Select → Color Range → Highlights: Select near-white pixels to see how many are lurking outside your intended design area.
How to Remove Stray Pixels
Once you've found stray pixels, here are the most effective removal techniques:
- Matting / Defringe: In Photoshop, with your layer selected: Layer → Matting → Defringe. Enter 1–2px to remove fringe pixels. Also try Remove White Matte or Remove Black Matte.
- Contract and feather selection: Select your subject, contract the selection by 1–2px (Select → Modify → Contract), then invert and delete the fringe area.
- Refine Edge / Select and Mask: The most powerful tool for complex edges. Use Output To: New Layer with Layer Mask, and enable Decontaminate Colors.
- Eraser at low opacity: For isolated pixel clusters, use the Eraser tool at 100% hardness, zoomed in at 400%+.
- Threshold adjustment: Apply a Threshold adjustment (destructively) to force semi-transparent edge pixels to fully transparent or fully opaque.
Preventing the Problem
The best time to handle stray pixels is before they exist. Build clean file habits:
- Design on transparent canvas from the start — never design on white if you intend a transparent final output
- Use vector masks instead of destructive erasing — non-destructive; easy to refine
- Use Pen Tool selections for complex subjects — more precise than Magic Wand
- Always preview on a coloured canvas before exporting as PNG
- Run a stray pixel check before every upload — use Check Print Ready to catch issues in seconds