Draw a photo as a topographic map

Brightness is treated as height, and a line is drawn wherever it steps up a level, so landscapes and faces turn into rings of contour lines like a survey map.

Open the editor with this effect

What you get

Made with plain math, not a model

There is no generative model behind this look and nothing was trained on anyone's work. It is a short list of fixed steps running in your browser.

  1. Read the photo: Your photo is read pixel by pixel inside your browser. It is never uploaded, so nothing leaves your device.
  2. Contour lines: The image is sliced into brightness levels and the edge of each level is traced as a line, like the contours on a map.
  3. Same input, same pixels: Every step is fixed math with fixed seeds. Run it again tomorrow on the same photo and you get exactly the same image.

Templates in this style

Browse templates in this style

A topographic map turns a landscape into lines. Each line joins points at the same height, so a hill becomes a set of rings and a valley a set of nested curves. The same idea works on a photo if you treat brightness as height: every time the picture steps up a level of light, draw a line. Bitgrain does exactly that with plain image maths, no AI, and the result looks like a survey map of your picture.

How contour lines work on a real map

A contour line connects every point at one elevation. Walk along it and you neither climb nor descend.

The contour interval is the height difference between neighbouring lines, such as 10 or 20 metres. It is fixed across the map, so the spacing of the lines tells you the slope.

Close lines mean steep ground and wide gaps mean flat ground. A cliff shows as lines crowding together into a dark band.

Most maps draw every fifth line a little heavier, called an index contour, so you can count heights quickly. Some colour the bands between lines too, a technique called hypsometric tinting.

How Bitgrain turns a photo into contours

First the photo is turned into brightness and gently smoothed. Without smoothing, every speck of texture would grow its own tiny ring and the map would turn to scribble.

Then the brightness range is split into an even number of levels, just like a fixed contour interval, and a line is drawn on every boundary between one level and the next.

Where the light changes quickly, along an edge or a shadow, lines crowd together like a steep slope. Smooth areas such as sky or skin get wide, calm rings.

It is a fixed algorithm. The same photo and settings always give the same map, and it all runs in your browser.

Photos that make good maps

Soft gradients are ideal. Skies, mist, mountains in layers and faces lit by a window all give long, flowing lines.

Heavy texture, like grass, gravel or leaves, makes lots of small loops. Use fewer levels to keep it clean.

Portraits are a favourite. Light falling across a face turns into rings around the cheeks and nose, a bit like a relief map of the person.

How to do it in Bitgrain

Open the editor from this page. The Contour look is already on the sample with fourteen levels. Drop in your own photo.

Change Levels in the Contour panel. Fewer levels give a sparse, clean map, more give a dense one full of detail.

Set Fill to Filled bands to shade the space between lines, which gives a stepped, terraced look like a tinted map.

Export PNG. It also makes a good background pattern behind type in the studio.

Common questions

Is this a real elevation map?

No. It reads brightness, not height. To map real terrain you need elevation data, but a photo of a landscape often gives a surprisingly map like result because distant hills tend to be lighter.

Can I make a topographic pattern for a background?

Yes. Use a soft, blurry photo such as clouds or a gradient, set a low number of levels, and export PNG. The smoother the source, the calmer the lines.

Does it use AI?

No. The lines are traced from the brightness of your photo by a fixed algorithm, in your browser. Nothing is uploaded.

Related tools