Skip to content
ModelFileKit

How to convert an image to STL: logos, photos and depth

Three different ways to turn a picture into a printable 3D model, which one fits your image, and the settings that decide whether the print looks good.

· 7 min read

An image has no depth: you have to choose one

A PNG or a JPG is a flat grid of colored pixels. To print it, every pixel needs a height, and there is no single correct way to invent one. That is why “image to STL” converters give such different results: some extrude shapes, some read brightness as height, and some try to guess the real distance of each point. None of them is better in general. Each one is right for a kind of image and wrong for the others.

The Image to STL converter on this site has the three approaches as modes: Colors, Brightness and Depth. This guide explains what each one does to your pixels, how to choose, and which settings matter most.

Mode 1: Colors, for logos, icons and drawings

What it does. The image is reduced to a few flat colors (from 2 to 8). Each color region is traced into a vector outline and extruded as its own solid piece, like the letters of a sign. The background color is left out, and tiny specks are cleaned up so they do not become stray dots on the print bed.

When to use it. Logos, icons, silhouettes, signs, stickers, cookie cutter shapes, coats of arms and anything drawn with clear edges and few colors. If you could color the image with a handful of markers, this is the right mode.

When not to use it. Photos. A photo has thousands of slightly different colors and soft gradients; reduced to five colors, it becomes a messy patchwork of blobs.

Settings that matter:

  • Number of colors. Start with the number of colors you can actually see in the logo, plus one for the background. Too many colors split smooth areas into slivers; too few merge parts that should be separate.
  • Height per color. Each color gets its own height, so a logo can have a 2 mm base, 3 mm letters and a 3.6 mm outline. Differences of 0.6 mm or more read clearly on a print with a 0.2 mm layer height.
  • Width. You set the final width in millimeters and the height of the model follows the proportions of the image. Thin lines in the picture become thin walls: a line that is 1% of a 60 mm wide logo is only 0.6 mm wide, barely more than one extrusion with a 0.4 mm nozzle. If details disappear in the slicer preview, print larger or thicken the lines in the image first.

Multicolor printing. Because each color is a separate solid that fits the others without overlapping, the download is a ZIP with one STL per color. Import all the files at once into Bambu Studio, PrusaSlicer or Orca Slicer, accept loading them as a single object with several parts, and assign a filament to each part. It works with an AMS, an MMU or any other multi-material setup. With a single-color printer, you can still get two colors by pausing at the layer where the top color starts and swapping filament.

Best input. A PNG of the logo itself, not a photo of it. Flat colors and sharp edges trace cleanly; JPEG compression adds noise around edges that shows up as jagged outlines. If you have the logo as an SVG, the SVG to STL converter skips the tracing step and keeps the exact curves.

Mode 2: Brightness, for photos as wall reliefs

What it does. Every pixel becomes a column whose height follows its brightness: light areas stand out and dark areas stay low, or the other way around with “Invert”. This is a height map, the same idea as a lithophane, but meant to be seen with normal light instead of light shining through it.

When to use it. Photos you want as a relief on a wall or a desk, textures, maps, drawings with shading, and decorative panels. You can crop the photo and cut the relief into a rectangle, a circle or a heart.

What to expect. Brightness is not distance. A white shirt stands out more than a dark face, and a shadow under the nose becomes a dent. For portraits that is often fine, because the eye reads the relief as a picture, but it never looks like a sculpture.

Settings that matter:

  • Minimum and maximum thickness. The minimum is the base: under about 1 mm the relief can warp or break. The difference between minimum and maximum is the depth of the relief; 2 to 4 mm is enough for it to catch the light.
  • Contrast and brightness. A photo that looks fine on screen can be flat as a relief, because most of its pixels sit in the middle tones. Raising the contrast spreads them over the full height range.
  • Detail. The resolution of the height map, in points per millimeter. A 0.4 mm nozzle cannot draw features much smaller than its width, so around 5 points per millimeter is plenty. Going higher makes the STL heavier without adding detail you can print.

Print it flat, face up, with a small layer height (0.12 to 0.16 mm) so the slopes do not look like stairs. Light coming from the side makes the relief stand out much more than light from the front.

Mode 3: Depth, for real volume from a photo

What it does. An AI model, Depth Anything V2 Small, estimates how far each point of the photo is from the camera. Near areas stand out and far areas stay low, so a face gets its nose, a pet gets its snout and a statue gets its real shape, instead of following light and dark. The model runs on your own device, on the graphics card through WebGPU when the browser allows it, or on the processor through WebAssembly when it does not. The photo is never uploaded.

When to use it. Portraits, pets, statues, objects and close-ups with one clear subject. “Remove background” cuts out what is far away and leaves only the subject, and “Photo detail” adds the fine texture of the photo, such as hair or fur, on top of the shape.

Limits. The model estimates relative depth from a single picture. It does not know the real size of anything, it cannot see the back of the subject, and it can be fooled by reflections, glass, and photos where everything is at the same distance, like a flat document. The result is a deep relief, not a full 3D model you can turn around. That is still very useful: a pet relief, a medallion or a bas-relief portrait.

First run. The first time you use Depth, the browser downloads the model once (about 19 MB) and keeps it in its cache. The next photos are processed without downloading it again.

Which mode should you use?

Your image Mode Why
Logo, icon, sign, drawing with flat colors Colors Clean edges, one piece per color, multicolor ready
Photo for a wall relief or texture Brightness Follows light and dark, works with any photo
Portrait, pet, statue, object Depth Gives the subject its real volume
Photo that should glow against a light none: use the Lithophane Maker Thickness controls how much light passes

Common problems and how to fix them

Too many small pieces in Colors mode. Lower the number of colors or raise the cleanup. Anti-aliased edges in the source image create thin rings of in-between colors; a cleaner PNG at a higher resolution helps more than any setting.

The relief looks flat. Raise the contrast, or increase the difference between minimum and maximum thickness. In Depth mode, a photo taken from very far away has little depth difference inside the subject; crop closer.

The STL is huge. Lower the detail. We measured it: a 100 × 75 mm relief at 5 points per millimeter is a grid of 501 × 376 points, which becomes 753,500 triangles and a 36 MB STL. Doubling the detail would need four times as many points, so the converter caps the grid at 400,000 points and lowers the detail on its own. On a 0.4 mm nozzle, 5 points per millimeter already prints everything the nozzle can draw.

The slicer says the model is not manifold. The converter produces closed solids, but if you edited the STL elsewhere afterwards, run it through Repair STL before slicing.

Summary

Pick the mode by the kind of image, not by the result you hope for: Colors for anything drawn, Brightness for photos as wall art, Depth for subjects that need volume. Then set the width first, check that the thinnest lines are wider than your nozzle, and adjust contrast or colors until the 3D preview looks right. Everything happens in your browser, so you can try all three modes on the same picture in a minute and keep the one you like.