How to turn a photo into a 3D printed bas-relief

Drop the photo into the photo to relief tool, wait for the depth estimate, set the width and the thickness, and download an STL in which near things stand higher than far things.

To turn a photo into a bas-relief, drop it into the photo to 3D relief tool, wait a few seconds for the depth estimate, set the width and thickness in millimetres and press Download STL. The tool estimates how far each point is from the camera, so a face stands out from its background. An ordinary image-to-STL converter raises bright pixels instead, which is why photos come out of it as noise: a white wall becomes a hill and a dark coat a hole.

What you need

  • A photo (PNG, JPG or WebP) with one clear subject in front of a background.
  • A current browser. The first use downloads the depth model, about 27 MB, from huggingface.co and cdn.jsdelivr.net; the browser keeps it for next time.
  • Free use covers 2 downloads a day. The photo itself is never uploaded.

Steps

  1. Open photo to 3D relief and drop the photo on the box, or press Try a sample picture.
  2. Wait for the status line "Depth estimated on your device. Near parts of the picture are raised."
  3. Leave Mode on Depth relief (near = higher, estimated by AI).
  4. Set Width. The height follows the proportions of the photo.
  5. Set Minimum thickness (the furthest point) and Maximum thickness (the nearest point). The relief height is the difference between them.
  6. Raise Smoothing if plain areas look rippled. Add a Frame if you want a raised border.
  7. Check the line under the buttons, for example "100.0 × 125.0 × 4 mm, 405,400 triangles", then press Download STL or Download 3MF.

Settings

SettingDefaultWhat it does
Width100 mm10 to 600 mm
Minimum thickness1.5 mmPlate under the furthest point
Maximum thickness4 mmHeight of the nearest point; with the defaults the relief is 2.5 mm tall
Frame0 mmBorder at maximum thickness, inside the width
DetailNormal (0.25 mm)Grid spacing. Draft is 0.5 mm, Fine 0.15 mm; at most 600 points per side
Smoothing1 pass0 to 5 blur passes over the heights
Invert heightsOffSinks the subject instead of raising it
ShapeFlatCurved (standing) previews free; downloading it needs Pro

Because of the 600-point limit, Normal detail stops adding anything above a 150 mm side and Fine above 90 mm.

Depth or brightness: which tool for which picture

You wantThe pictureTool
A relief of a person, pet or objectPhoto with a clear subjectPhoto to relief
A raised logo, text or drawingFlat artwork, high contrastImage to STL
A picture that appears when lit from behindAny photoLithophane maker
A flat sign in several coloursLogo with few flat coloursImage to 3MF

What the depth estimate is, and is not

The model is Depth Anything V2 (Small), published in 2024 (arXiv 2406.09414) under the Apache-2.0 licence. It runs in your browser through WebAssembly, on your own processor. Its output is relative depth: which point is in front of which, and roughly by how much. It is not a measurement in millimetres, and it sees one side only.

The photo is scaled to at most 1,024 pixels on its long side before the estimate, so a very large original gains nothing. The nearest point of the picture always gets the maximum thickness and the furthest the minimum, whatever the real distances were.

Printing a relief

  • Lay it flat, relief up. No supports are needed.
  • Layer height sets the number of steps. A 2.5 mm relief has 21 layers at 0.12 mm and 13 at 0.2 mm. Gentle slopes such as cheeks show the steps as contour lines, so 0.12 to 0.16 mm is a good starting range.
  • Keep it shallow. As a rule of thumb, 2 to 6 mm of relief on a 100 mm print. Taller reliefs stretch every error of the estimate.
  • Mind the file size. At the defaults our 100 × 125 mm test gave a 20.3 MB STL and a 3.3 MB 3MF of the same mesh. Take the 3MF if the slicer is slow, or use Draft detail.
  • One colour, matt. The picture comes from light and shadow on the surface; glossy filament adds highlights that fight it.

Troubleshooting

ProblemCauseFix
Fine ripple on plain areasDepth estimates are slightly uneven on walls and skySet Smoothing to 2 or 3
The subject barely stands outSomething much nearer or much further is in the frame and uses up the height rangeCrop the photo to the subject before dropping it; the tool has no crop
The result follows light and dark, not shapeMode is on "Relief (bright = higher)"Set Mode back to Depth relief
An almost flat plateThe picture is a document, logo or drawing: there is no depth in itUse image to STL
"The depth model could not be loaded."One of the two hosts named above is blocked or offlineAllow both hosts, then try again
A Pro window on downloadShape is on Curved (standing), or both free downloads are usedSet Shape to Flat, or wait a day

What the tool cannot do

  • A model you can turn around. One photo shows one side; the back is a flat plate. For a real 3D copy you need many photos (photogrammetry) or a scanner. Image to 3D model: 4 methods compared covers those.
  • True dimensions. Depth is estimated, so do not measure from it.
  • Crop, rotate or mask. Prepare the photo first. To trim the finished plate with a straight cut, use cut STL.
  • Backlit pictures. That is a lithophane; see the lithophane printing guide.

FAQ

Why does image to STL give a noisy result on photos?

Because it maps brightness to height. In a photo brightness comes from colour and lighting, not from shape, so the surface follows shadows and patterns. A depth model estimates distance instead.

Is my photo uploaded for the depth estimate?

No. The model is downloaded to your browser once and runs on your device. Only the model file and its runtime come from the network.

How thick should a photo relief be?

A 1.5 mm plate with 2 to 6 mm of relief on top suits a 100 mm print. Start with the defaults, 1.5 and 4 mm, and raise the maximum only if the subject looks too flat.

Which layer height should I use?

0.12 to 0.16 mm is a good starting range. The relief is only a few millimetres tall, so each layer is a visible step on gentle slopes.