Thickness map · watertight binary STL · back-lit preview

Lithophane STL Maker

Turn a photo into a lithophane model: dark areas become thick plastic, light areas thin, and the print glows into the picture when a lamp sits behind it.

Photo

PNG, JPG, WEBP, GIF or BMP

Drop a photo here or click to choose

Up to 25 MB. The model keeps the photo's shape.

Shape and size

A flat plate, thickness along one axis.

A rim at full thickness around the picture, so the edge is stiff and blocks stray light.

Thickness and detail

The lightest areas. Under about 0.6 mm many printers cannot make a solid layer.

The darkest areas.

401 × 401 samples.

Below 1 lifts the shadows, above 1 deepens them.

Build the STL

722,496 triangles · about 34.45 MB

The picture stands upright with Z up. In your slicer, print it standing or lying flat with the smooth side on the bed.

Back-lit preview

Open a photo. Portraits with a plain background work best.

Lithophane STL Maker

Operator: Abdulla Al Fahad. How tools are built and checked

A lithophane is a picture carved in thickness: where the plastic is thin, light from behind passes through and the area looks bright, and where it is thick, the area looks dark. Printed in white filament and lit by a lamp, a 3.2 mm slab becomes a photograph.

The page turns a photo into that relief. It maps brightness to thickness between the minimum and maximum you set, bends the slab into an arc, a cylinder or a dome if you want, adds a border, and saves a binary STL that it has first checked for holes.

Key features

  • Four shapes: flat, curved (arc of 10 to 300 degrees), cylinder for a lamp shade, and dome (a sphere cap)
  • Width from 10 to 400 mm, a border of 0 to 30 mm at full thickness, minimum thickness from 0.2 mm and maximum up to 12 mm
  • Contrast and gamma curves, an invert switch, and a mirror switch that makes the picture read correctly from the smooth side
  • A resolution of 0.5 to 12 samples per mm, lowered automatically so the model stays within 4 million triangles

Thickness, shapes and the checks run on the mesh

The default thickness range is 0.6 to 3.2 mm. Brightness 255 gets the minimum and brightness 0 the maximum, with the contrast curve applied around mid-grey and the gamma after it. At 0.2 mm layers that range is 3 to 16 layers, which is why finer layer heights give smoother tones.

The model stands upright with thickness along the Y axis and the smooth side as its back. A curved or dome model grows its relief outward from the surface, and the page refuses a maximum thickness above half of the curve's radius, because beyond that the relief would fold into itself.

The file is a binary STL: an 80-byte header, a 4-byte triangle count, and 50 bytes per triangle for the normal, three corners and a two-byte attribute. The size is 84 + 50 × triangles bytes, so a model of 948,596 triangles is about 47.4 MB.

How it works

The mesh has two surfaces over one grid, the smooth back and the relief front, joined by walls along the open edges. A cylinder wraps the grid around so there are no side walls, and its top and bottom edges are closed.

Before saving, the worker lists every directed edge of every triangle and requires each to appear once forward and once in reverse, which proves the surface is closed and consistently oriented. It also requires a positive signed volume, so the triangles face outward, and no triangle of zero area.

A smaller grid, capped at 160,000 triangles, drives the back-lit WebGL preview, which shades each point by the light that would pass through its thickness.

Typical uses

  • A lamp shade from a landscape photo: a cylinder 200 mm in circumference is 63.7 mm across, so it fits over a small LED candle.
  • A desk plate from a 3:2 landscape photo at 180 mm wide: with the default 3 mm border the flat model is 186 mm wide and 126 mm tall (120 mm of picture plus 6 mm of border), and 3.2 mm thick at its darkest.
  • A curved window-sill panel at the default 120 degree arc and 100 mm width: the 106 mm of picture plus border runs along the arc, so the panel is only about 87.7 mm from end to end, and it stands 26.9 mm deep.

Building one

  1. Drop a photo; a portrait with a clear subject and an even background works best.
  2. Pick the shape and set the width. The height follows the photo's shape.
  3. Set the thickness range, the border and the resolution, and judge the back-lit preview, with the lamp brightness slider to compare.
  4. Press Build and download STL; the page reports the triangle count, file size, dimensions and volume.

Example

A 1500 × 2000 portrait of a dog (illustrative), width 100 mm, default thickness and border

dog.jpg: build once with Shape: Flat and once with Shape: Cylinder (lamp shade), width 100 mm both times

Size reported after each build

Flat: 948,596 triangles, about 47.4 MB, 106.0 × 3.2 × 139.3 mm
Cylinder: 892,800 triangles, about 44.6 MB, 31.8 × 31.8 × 139.3 mm
The 100 mm is the picture's width in both, but a flat plate adds the 3 mm border on each side (106 mm) while a cylinder wraps the 100 mm round its circumference (diameter 100 ÷ π = 31.8 mm)
Both builds pass the closed-surface check: every edge shared by two triangles facing opposite ways, outward-facing triangles, none with zero area

Tips for best results

  • A 3 mm border at full thickness gives the print a stiff frame and blocks light around the picture; set it to 0 for a model you will mount in your own frame.
  • Raise the contrast to about 1.3 for a flat, grey photo, and lower the gamma below 1 to lift dark faces out of the thick, opaque range.
  • Turn invert on only for a model you will light from the front, such as a relief against a dark background.

Things to check before you rely on it

Thickness changes the light, but so do the filament colour, brand and the lamp. Print a 30 mm test of your photo's face before the full piece.

A relief with a very steep step, such as black text beside white paper, prints with visible layer stripes at the step. Smooth the photo first or lower the contrast.

A cylinder is an open tube, as a lamp shade should be, so it prints standing on its rim and its layer lines run around the picture rather than across it.

A maximum thickness over half of the radius is refused, which excludes small domes with thick relief; widen the shape or lower the maximum.

Common errors and how to fix them

"The maximum thickness is more than half the curve's radius"
Use a wider shape, a smaller arc angle, or a thinner maximum thickness; the message gives the radius.
"The dome would pass 80 degrees of latitude"
Reduce the arc angle or choose a wider, shorter picture.
"The minimum thickness must be at least 0.2 mm"
Raise it; below about 0.6 mm many printers cannot make a solid layer.

Best practices

  • Pick a layer height that divides the range into many steps: 0.6 to 3.2 mm is 3 to 16 layers at 0.2 mm and 6 to 32 layers at 0.1 mm.
  • Leave the samples per mm at 4 or more for a 100 mm picture; below 2 the grid is visible as squares in the preview.

What the width means for each shape

Flat: the width is the picture itself, and the border is added on every side, so a 100 mm width with the default 3 mm border is a 106 mm plate. Curved and dome: the same 100 mm plus borders is the arc length, measured along the surface; the angle sets how tightly it bends, so the straight-line span is shorter than 106 mm (87.7 mm at 120 degrees).

Cylinder: the width is the circumference, so the picture goes once round the shade and the diameter is the width divided by π. The height still follows the photo's shape. If a curved or dome shape is chosen on a tall photo, the page lowers the default arc to the largest angle that builds, so the dome never starts in an error state.

Frequently asked questions

What happens when the resolution would pass the triangle limit?

The grid is thinned by 7% steps until it fits. A 300 mm square at 12 samples per mm is reduced to about 3.25 per mm, just under the 4,000,000 cap, and the page says it lowered the resolution.

Why does the preview look different from the print?

The preview shows a simple back-lit shading of the thickness. A real print also depends on the filament's translucency and on the lamp, so use the preview for tone, not for exact brightness.