What is a PNG? The transparent, lossless file for t-shirt printing
Published , by the PrintBlob team.
PNG, Portable Network Graphics, is a raster image format that compresses without losing any data and can store a transparency value for every pixel, which is why it is the standard file for printing a design on a garment. Decoding a PNG returns the original pixels bit for bit, and the same file can carry a logo with nothing around it. Most DTG, DTF and sublimation print services ask for it, and most of what goes wrong with a PNG is in the details below.
What is inside
The W3C’s specification defines five colour types and the bit depths each allows.
| Colour type | Holds | Bit depths |
|---|---|---|
| Greyscale | One grey value per pixel | 1, 2, 4, 8, 16 |
| Truecolour | Red, green, blue | 8, 16 |
| Indexed | A palette of up to 256 colours | 1, 2, 4, 8 |
| Greyscale with alpha | Grey and transparency | 8, 16 |
| Truecolour with alpha | Red, green, blue and transparency | 8, 16 |
In the two “with alpha” types, transparency is one extra sample per pixel at the same depth as the colour: zero means fully transparent, the maximum (255 at 8 bits) fully opaque, and anything between partly see-through. Files without that channel can still name one colour as transparent, or give each palette entry an alpha value (the tRNS chunk), but then pixels are only clear or solid, and a soft edge is impossible. A PNG with neither is fully opaque.
Compression is deflate, and the data can be stored in sequence or interlaced (Adam7, seven passes that give a coarse preview early, useful on the web, irrelevant to print). The file may carry an sRGB or an embedded ICC profile and a physical-size hint; the specification says viewers need not honour the size hint, which is another reason to ignore the resolution tag.
A good PNG for a shirt
Printify’s setup guide gives the working checklist for t-shirt PNGs: 300 DPI at print scale, a background that is fully transparent (an 8-bit alpha channel with no background layer left underneath), the sRGB colour profile and PNG-24 with transparency on export. Two warnings from the same guide are worth repeating:
- Half-transparent pixels. Any pixel above zero opacity, even from a soft shadow or a feathered edge, can trigger a white underbase on dark garments, leaving a chalky halo that screen previews hide. See semi-transparency and the white halo.
- A “transparent” PNG that is not. A white fill left on a hidden layer exports as a white box. Check for the grey-and-white chequerboard in your editor.
PNG’s limits
PNG is poor for photographs at full size: lossless compression keeps every pixel, so a large photographic PNG is far heavier than the same picture as a JPEG. It does not store layers, vector shapes or CMYK; for those, use a PDF or SVG.
In PrintBlob
Customers can upload PNG, JPEG or WebP. PrintBlob renders each printed side as a transparent PNG at 300 DPI at the print area’s exact size, a 28 × 36 cm area giving 3307 × 4252 pixels, made in the customer’s browser when the design is added to the cart (the front’s in the free plugin, every other side’s with PrintBlob Pro). The PNG is RGB; the CMYK PDF is a separate file. Pro’s clipart library also takes PNG art. The DTF image checker reads a PNG’s own bytes, so it tells a PNG from a renamed JPEG.
Sources
- W3C: Portable Network Graphics (PNG) Specification, Third Edition, read 28 Oct 2026
- Printify: PNG file setup for t-shirts, read 28 Oct 2026