Green Screen Remover. Runs on your device

CHROMA KEY NOTES / 007

Why Your Transparent PNG Prints With a White Box

SHORT ANSWER

Printing has no alpha channel, so a transparent PNG cannot be printed as-is: the print chain must fill every clear pixel with a solid color, and by default that color is the white of the paper. Flatten the cutout onto the exact background color the job will actually be printed on, then export an RGB JPEG, TIFF or flattened PDF with no alpha, and keep the transparent PNG only as a master file. In the 640 by 420 cutout shipped with this site, 208,648 of 268,800 pixels (77.62 percent) are fully transparent and become pure white the moment they are flattened. Re-keying the image will not change a single one of those pixels.

Open the green screen remover ↗

What a transparent PNG actually asks the printer to do

A keyed PNG is a straight-alpha RGBA file: for each pixel it stores red, green, blue, and a fourth value that says how much of that pixel should cover whatever is behind it. Alpha 255 means fully opaque, alpha 0 means fully invisible, and anything between is a partially covered anti-aliased edge. We decoded the two cutouts bundled with this tool and one RGBA frame written by our own pipeline, using a pure-Python PNG reader that handles all five filter types. The bundled sample is 640 by 420, the bundled tiger is 610 by 345, and our own frame is 640 by 420. All three are color type 6, 8-bit RGBA.

The alpha histograms explain the whole problem. In the 640 by 420 sample, 208,648 of 268,800 pixels (77.62 percent) are fully transparent, 59,590 are fully opaque, and 562 sit in between across 94 distinct alpha levels from 3 to 254. The tiger has 167,035 clear pixels (79.37 percent) and 1,292 partial pixels spread over 249 distinct levels. Our own pipeline output has 209,122 clear pixels (77.80 percent) and 1,630 partial pixels over 84 levels. That thin band of partial alpha is the soft silhouette the keyer worked to produce, and it is the part a print flattening step erases.

Paper and presses do not have a fourth value. A printing press lays down cyan, magenta, yellow and black ink, and a pixel with alpha 0 does not mean "a transparent pixel" - it means "put no ink here". With no ink, the substrate shows through. On white paper that reads as a white rectangle around your subject, which is exactly the complaint people bring to prepress forums. One designer put the underlying wish precisely: "that is, whenever I send it to the printing service, the base color of the selected paper should be visible, without any ink being printed on it (not even white - the paper will have a base color/texture that I do not want to print over)" (Graphic Design 29227). The same person found that "Currently exporting the page to a png file creates an image with my original image on a white background". Printing cannot store an instruction; it can only store a color.

Structured formats do not save you. One user asked how a print provider handles clear areas in a PDF and noted "PDF shows white even when it's not there. It's not there actually if we open PDF again" (Graphic Design 143468). A print-field user asked for "CMYK over a transparent background" and described having to build a separate white knockout image underneath (Graphic Design 41080). The alpha channel is one quarter of the raw RGBA data - 268,800 bytes for a 640 by 420 frame - and JPEG, CMYK TIFF and PDF/X-1a have nowhere to put it.

A keyed PNG stores an alpha channel, but print, CMYK and JPEG have no alpha channel, so every transparent pixel must be filled with a solid color
Fig. 1 - The central idea. Alpha is an instruction to composite; paper can only hold a color. All counts are measured from this site's own downloads.

Why the box is white, black, or sometimes green

There are three things a downstream program can do with an alpha value it cannot store, and each produces a different-looking box. We simulated all three per pixel on the three real files.

The first is flatten onto white, the standard print-shop and consumer-printer behavior: out = RGB times alpha plus white times one minus alpha. Every fully clear pixel becomes exactly (255,255,255). On our sample that is 208,648 pixels, on the tiger 167,066 (the 167,035 clear ones plus 31 faint edge pixels that round to white), and on our own frame 209,122. One InDesign user hit this directly: "when I export to PDF (to print) it turns the logo's background from transparent to white. How do I stop this behavior?" (Super User 904115). Another reported that a print-shop upload site did the same to an SVG: "the resulting file has a white background when uploaded to my printer's website." (Graphic Design 79312).

The second is drop the alpha channel and show the stored RGB. Straight alpha does not zero the hidden color, so the result depends on what the exporter left there. In the two shipped cutouts, all clear pixels carry (0,0,0), so dropping alpha produces 208,648 and 167,035 black pixels - a black box. In our own RGBA writer, all 209,122 clear pixels carry a mean green of (0.1, 210.0, 106.0), so the same operation produces a green box. This is a documented developer complaint: "when saving it as JPEG, the alpha channel is dropped completely and the all of the pixels are fully opaque" (Stack Overflow 65029710), "the converted jpeg has a black background. Is there any way to make the background white instead?" (Stack Overflow 6513633), and "when a PNG with transparency is uploaded, the resulting JPEG image is black where there was transparency" (Stack Overflow 5688954). Three pipelines, one cause: no alpha, so a hidden color wins by default.

The third is composite on a colored substrate, which is what you actually wanted when the paper is dark, colored, or transparent film. We composited each file over a deep ink background of (16,34,28) and compared it to the white flatten: 209,210 of 268,800 pixels (77.83 percent) differ on the sample, at a mean RGB distance of 396.4; 168,327 (79.98 percent) differ on the tiger; 210,752 (78.40 percent) differ on our own frame. Those differing pixels are the visible rectangle. The soft edge is where the artifact is most visible: all 562, 1,292 and 1,630 feathered pixels shift color between the two composites. A designer described exactly that faint version: "a faint box (background) around the image is showing up ... It's not fully white or solid, just lighter than it should be" (Graphic Design 55630), and another saw "a faint outline around each triangle ... only seems to occur when transparency is flattened" (Graphic Design 39523). A GIMP-to-Inkscape-to-PDF chain produced the same thing: "I have a very faint unwanted border when I print a PDF that has been exported from Inkscape" (Graphic Design 165735).

What the print chain does, stage by stage

StageWhat happens to alphaWhat you see
RGBA PNG master8-bit alpha kept; 268,800 alpha bytes on a 640 x 420 frameCheckerboard in an editor
JPEG conversionNo alpha in the format; channel dropped entirelyWhite box or black box from hidden RGB
CMYK separation4 ink plates, none of them alpha; clear = no inkPaper color shows through
PDF/X-1a flatteningTransparency flattened; placed cutouts may disappearWhite box, faint fringe, or missing image
Print on clear filmNo ink is white; white ink needs a separate spot plateSubject prints, background stays clear
Die-cut stickerCut line is a vector path, not an alpha planeShape follows the path, not the rectangle

The PDF/X case is worth calling out because it fails in the opposite direction. One prepress user reported that "PDF/X-1a:2001 file doesn't print PSD's/TIF's with alpha channel" and that "It's as if someone has perfectly cut out the images from the document" on colored boxes, while the files that did print were "tif's using clipping masks with white backgrounds" (Super User 683036). A virtual-printer comparison found "PDF creator, doPDF, CutePDF writer: NO transparency!" alongside poor raster resolution (Super User 1236323). A white-knockout question on a blue poster notes that "the copy is all white" and asks whether the printer will "knockout" it automatically (Graphic Design 106513). These are prepress decisions about ink and clipping paths, not parameters a color key exposes.

Measured comparison of three real RGBA PNGs showing clear pixels, partial alpha levels, white box pixels, hidden RGB box color and edge fringe counts
Fig. 2 - Three real files, three different boxes. Every column is a count decoded from this repository's own PNGs, not an estimate.

What flattening costs the soft edge

Flattening is not lossless on the silhouette. On the 562 partial-alpha pixels of the sample, compositing onto white shifts their stored color by a mean RGB distance of 162.1, and 21 of them are washed to a near-white (all channels at 250 or above). On the tiger the mean shift is 101.3 with 76 washed pixels; on our own frame it is 49.4 with 34 washed pixels. The 94, 249 and 84 distinct coverage levels collapse to a single blend against one background. That is why a faint halo or a slightly lighter rectangle can appear even when the box color "matches" - the edge was computed against a different background than the one it is now sitting on.

Resolution compounds it. At 300 dpi, a 640 by 420 cutout is only 2.13 by 1.40 inches on the page, and 2.32 square inches of that is the non-opaque region that becomes the box. Upscaling the file to fill a larger printed area invents no edge detail; it just enlarges the washed band. Flatten once, at the final pixel size, against the single correct background. If the subject itself was lit green by the backdrop, no amount of flattening restores its color - see green spill after keying. If the backdrop was unevenly lit, the edge band is irregular before it ever reaches prepress; the four-corner lighting diagnosis applies at capture time.

What to hand the print shop

Start from the fact that the transparent PNG is a master, not a delivery file. Ask the provider three questions: what substrate or background color will this be printed on, what color profile and file format do they require, and whether they need a knockout, a white spot plate, or a clipping path. Then composite the cutout onto that exact color at full resolution and export a no-alpha RGB JPEG, TIFF, or flattened PDF with the profile embedded. Keep the RGBA PNG in your own archive so you can re-flatten for a different substrate later. A logo designer described the gap between web and print plainly: "I know how to save it for web as PNG 24 with transparent background, so it can be used later on any background color. But I don't know how to save it for print" (Graphic Design 109068). A photo user found the same on a home-built printer: "I made it and transferred it to the printer and I appeared white" (Photo 121957; the wording is in the original).

For clear film, dark stock, stickers and transparent labels, alpha is the wrong tool entirely. Printing "transparent" means printing no ink, and white on clear film requires a dedicated white spot plate or a varnish. A UV-printing question notes "the UV printer does not print 'white' nor is there a white background (CYMK inks are used)" (Graphic Design 133465). Use a vector clipping path for the shape, a die-cut or kiss-cut line for stickers, and an agreed knockout/overprint setting for white type on a colored field. Those are prepress operations. The broader list of jobs that belong to a different method is in when a green screen remover is the wrong tool; using a transparent PNG as a sprite covers the same alpha channel failing in a different pipeline, and why transparent video export is not available explains why a moving cutout cannot be delivered as a single transparent video either. If the cutout itself has holes, why a green screen remover fails covers the symptom-to-cause chain.

Conclusion card: what to fix before delivery, what no color key can fix, and when to switch to a different print method
Fig. 3 - Route the job by what the paper can hold. The transparent PNG is the master, never the delivery file.

One more destination makes the same point with a stricter number. A print shop needs the exact substrate color; a storefront needs an exact background color, and it may require pure white as 255,255,255 rather than transparency that happens to render white. Transparent PNG vs White Background for Product Listings measures what happens when the clear pixels are filled by a white theme, by a gray theme, or by hidden RGB after the alpha is dropped, and why a near-white product loses its outline at any of those settings. The diagram below is the short version.

A transparent cutout reaching three product listing destinations: a white theme, a gray theme, and a renderer that drops alpha and shows hidden RGB
Fig. 4 - Back-inserted delivery check: alpha has no color, so the destination invents one. Flatten onto the exact required background before upload, for a listing just as for a print job.

A short decision sequence

Confirm the master file is RGBA with a real alpha channel and a partial-alpha edge band, not an already-flattened white box. Ask the print provider for the substrate color and the required format and profile. Composite the cutout onto that exact color once, at the final printed size and resolution, and export with no alpha. If the destination is clear film or dark stock, request a white spot plate, a varnish, or a clipping path instead of expecting the PNG to carry transparency. If you see a white rectangle, the clear pixels were filled with paper; if you see a black or green rectangle, the alpha was dropped and hidden RGB was shown; if you see a faint box or fringe, transparency was flattened against a different background than the one it sits on. None of these three is fixed by re-keying. Details on this tool's parameters are in about this tool, and the same file's behavior on unevenly lit backdrops is covered in uneven green screen lighting.

Questions people actually ask

Why does my transparent PNG print with a white box?
Because printing has no alpha channel, so every fully transparent pixel is filled with a solid color, usually the white of the paper. Flatten onto the exact background color the job will be printed on, then export a no-alpha RGB JPEG, TIFF or flattened PDF and keep the PNG as a master. In our 640 by 420 sample, 208,648 of 268,800 pixels (77.62 percent) become pure white when flattened.
Can I send a transparent PNG straight to a print shop?
Only as a master file, never as the final delivery, because the print chain will decide what color the clear pixels become and you will not control it. Ask for the substrate color, composite at full resolution, and supply an RGB or CMYK file with no alpha. One InDesign user reported that exporting to PDF "turns the logo's background from transparent to white" (Super User 904115).
Why did my transparent PNG turn into a black box instead of a white one?
Because the converter dropped alpha and displayed the RGB still stored under the clear pixels. Straight alpha keeps hidden RGB: our two shipped cutouts store (0,0,0) under all 208,648 and 167,035 clear pixels, giving a black box, while our own writer stores (0,210,106) under 209,122 clear pixels, giving a green box. As one developer put it, "the converted jpeg has a black background" (Stack Overflow 6513633).
Does flattening damage the cutout edges?
Yes, it destroys every partial-alpha level and can wash the feathered edge toward the background color. Our three files carry 94, 249 and 84 distinct partial levels across 562, 1,292 and 1,630 edge pixels; flattening the sample onto white shifts those edges by a mean RGB distance of 162.1 and washes 21 of them to near-white. Flatten once, at full resolution, against the correct background.
Do I need a white ink plate for printing on clear film?
Yes if the design needs white, because standard CMYK has no white ink and "transparent" only means no ink was laid down. A UV-printing case notes "the UV printer does not print 'white' nor is there a white background" (Graphic Design 133465). Use a dedicated white spot plate, a varnish, or a vector clipping path agreed with the provider; a PNG alpha channel cannot express it.