Heads up: the FurniMesh team runs this site, and FurniMesh (furnimesh.com) is our own product. How that works

Guide ยท 7 min read

How to Prepare a PNG for 3D Printing

The converter can only extrude what it sees, so most bad STLs start as bad PNGs: a gray halo around a logo, a white box that should have been transparent, or lines so thin they vanish at print size. Ten minutes in any image editor fixes all of it. This guide covers the four things to check, with the numbers. It applies to flat artwork; a photo of a real object needs a different tool entirely, such as FurniMesh image to 3D for furniture and home objects.

Start with two tones, not two hundred

An extrusion is binary. Each sample of your image is either plastic or air, so the converter has to draw a line somewhere between your darkest and lightest tones. With crisp black artwork on a white background, the line falls in an obvious place. With a gray logo on a light gray background, or a logo with a drop shadow, the threshold has to guess, and the shadow often turns into a solid blob.

Before converting, remove shadows, glows, gradients and textures. Then raise the contrast until the artwork is near black and the background near white. In most editors, a Levels or Curves adjustment does this in one move: drag the black point in until the artwork is fully black, and the white point in until the background is fully white. If the logo has several colors that should all become plastic, convert to grayscale first and check that every color lands on the dark side of 50%. Pale yellow, for example, often reads as background.

In the converter, the Brightness source starts with the threshold at 50%. Watch the mask preview as you move the slider. If a thin part of the artwork disappears before the background noise does, the image still needs more contrast.

Real transparency beats a white background

A PNG can store an alpha channel, a per-pixel opacity value. When your PNG has one, Auto mode uses it: opaque pixels become solid, transparent pixels become air, and the threshold sits at half opacity. That is the most reliable source, because it does not depend on what color the artwork is. A white logo on transparency works as well as a black one.

Two traps are common. The first is the fake transparent PNG: an image that shows a gray checkerboard but actually has the checkerboard painted in as pixels. Open it in an editor; if the checkerboard moves with the image, it is fake. Delete the background with a magic wand or a background-removal tool and re-export as PNG with transparency. The second trap is a nearly invisible background, pixels at 1 or 2% opacity left behind by a soft eraser. The converter ignores them because they fall far below 50%, but they stop the automatic trim from cropping the empty margins. Select the background area and delete it fully.

Exporting matters too. A JPG cannot hold transparency, and some "save for web" presets flatten PNGs onto white. Export as PNG-24 or PNG-32 with transparency enabled.

A 3D printer bed covered with many small flat yellow ribbon shapes printed in one batch
Flat shapes printed in a batch. Each one started as a clean two-tone outline. Photo: Nizzan Cohen, CC BY 4.0, via Wikimedia Commons (source)

How many pixels you actually need

Pixel count only matters relative to the finished size. The useful unit is pixels per millimeter of output: the image width in pixels divided by the print width in millimeters. Around 4 px/mm, curves are smooth enough at arm's length. Around 10 px/mm, you are already past what a 0.4 mm nozzle can reproduce, since it lays down lines about 0.4 to 0.45 mm wide. Above that, extra pixels add file size and nothing else.

Recommended PNG width by print width
Print width4 px/mm (minimum)10 px/mm (plenty)Detail setting that matches
40 mm keychain160 px400 px160 to 200
60 mm badge240 px600 px200 to 300
100 mm coaster400 px1,000 px300 to 400
200 mm sign800 px2,000 px400 to 500

The converter's Detail slider, 200 samples across by default with a range of 40 to 500, sets how finely it samples your image, whatever the original size. A 3,000-pixel PNG at 200 samples is sampled at 200 points across, so the extra pixels are averaged away. That is useful: you can drop in a huge file and the mesh stays a sensible size. The reverse does not work. A 100-pixel icon sampled at 400 just gives smoothly interpolated blur. If your source is small, redraw or trace it larger rather than upscaling, which only enlarges the jaggies.

The triangle count rises with the square of the detail setting for relief mode and roughly with the length of the outline for extrusions. Watch the file size readout. A few megabytes is normal; tens of megabytes means your detail is higher than the printer can use.

Thicken lines before they vanish

This is the check people skip, and it causes most failed prints. Measure the thinnest stroke in pixels, then convert it to millimeters at your planned width: stroke pixels x print width / image width. If the result is below 0.8 mm, the slicer will thin it or drop it. Our minimum wall guide explains the 0.8 to 1.2 mm range for a 0.4 mm nozzle.

A worked example: a 1,200-pixel-wide logo with a 10-pixel outline, printed at 60 mm. The outline becomes 10 x 60 / 1,200 = 0.5 mm. Too thin. To reach 0.8 mm you need 16 pixels, so expand the stroke by 3 pixels on each side. In most editors, select the artwork, grow or expand the selection by 3 pixels and fill it. For text, switching to a bolder weight of the same font is cleaner than growing the pixels.

Small gaps have the same problem in reverse. A 0.3 mm gap between two letters will close up, because the extruded lines spread slightly. Keep gaps at 0.5 mm or more at the final size, more for PETG, which strings.

Got a PNG ready? Turn it into a watertight STL right now. It never leaves your browser.

Open the converter

Holes, islands and floating parts

Look at the mask preview for parts that are not connected to anything. The inside of an O, A or R is a hole, which the converter handles fine: it builds the inner wall automatically. The trouble is the reverse, an island. A dot on an i, or a separate star next to a logo, becomes a separate piece. With the base plate on, islands are all attached to the plate, so nothing is lost. With the plate off, each island prints as its own loose part. That is fine for a cookie cutter set, but not for a keychain, so either keep the plate on or join the pieces with a thin bridge, at least 1.2 mm wide, in the PNG.

A five-minute prep routine

Put together, the routine is short. Crop to the artwork. Remove the background to real transparency, or push it to pure white. Raise the contrast until the artwork is solid. Check the thinnest line in millimeters at your target width and thicken anything under 0.8 mm. Check the pixel count is at least 4 px/mm. Then drop the file into the converter and read the mask preview before you look at the 3D view. If the mask looks right, the STL will be right. If you are deciding whether to skip the PNG altogether and work from a vector, read PNG vs SVG for 3D printing next.

Questions

How many pixels does a PNG need for 3D printing?

About 4 to 10 pixels per millimeter of finished width. For a 50 mm keychain that is 200 to 500 pixels wide; for a 200 mm sign, 800 to 2,000. Below 4 px/mm curves get lumpy, and above 10 px/mm a 0.4 mm nozzle cannot show the extra detail.

Can I use a JPG instead of a PNG?

Yes, the converter accepts JPG and WebP too, but JPG has no transparency and adds compression noise around edges. Use the Brightness source, raise the contrast first and check the mask preview for stray specks.

Why does my logo come out as a solid rectangle?

The background is being read as solid. Either the PNG has an opaque white background and the source is set to Alpha, or the threshold is too high. Switch the source to Brightness or Auto, or invert if your artwork is light on dark.