Free tool

Depth Map Generator

Estimate near/far depth from a single photo as a grayscale map.

16-bit PNG preserves more depth levels for displacement and compositing. It does not add detail or make estimated distances accurate.

Recommended workflow

How to use the Depth Map Generator

  1. 01

    Upload your photo

    Photos with clear foreground/background separation work best.

  2. 02

    Choose format and depth direction

    Use 16-bit PNG for finer depth levels or 8-bit PNG for compatibility. Invert depth if your editor expects near objects to be dark, then click Apply.

  3. 03

    Download the depth map

    Save the grayscale result for displacement, compositing, or parallax. White means near unless you selected inversion.

What the depth map actually contains

MiDaS v2.1 small estimates relative inverse depth, not distance. A brighter pixel is nearer the camera than a darker one in the same image, but no grey level corresponds to a fixed number of metres, and nothing in the file records scale.

Each map is normalised independently across its own minimum and maximum, so two maps from two photos are not comparable. Mid-grey in a close-up portrait and mid-grey in a landscape describe completely different distances. Generate depth per image and use it within that image; do not expect depth to stay consistent across a sequence of shots.

Inference runs at 256x256 and the result is resampled back to your image's dimensions, so fine structure such as hair, wire, foliage, and chain-link comes back softer than the source. The default download is a 16-bit grayscale PNG, encoded from the floating-point estimate. It preserves more depth levels without adding spatial detail or making the estimated distances more accurate.

Choose 8-bit PNG if your editor cannot read 16-bit grayscale files. WebP is an 8-bit, lossy option for a smaller file; prefer PNG when pixel values drive displacement. If the AI model is unavailable, the tool labels its edge/blur approximation. Exporting that fallback at 16 bits does not create additional depth detail.

Where it works, and where it breaks

It works best when the photo has genuine depth to recover: a subject standing clear of its background, a product on a surface, a street or interior receding away from the lens.

It breaks down on flat originals — scans, screenshots, artwork, or a subject shot square-on against a wall — because there is no depth cue to find, and the map comes back as low-contrast mush. Glass, mirrors and water are read as the surface itself rather than as whatever sits behind or beneath them.

Using the map for parallax and 3D

The usual job is a displacement or depth channel: drive a 2.5D parallax push in After Effects, displace a subdivided plane in Blender, or mask a depth-of-field or fog pass so it falls off with distance.

It also serves as a control image for depth-conditioned image generators, which expect exactly this kind of relative greyscale map.

In Blender, load the PNG as Non-Color data before connecting it to displacement so a color-space transform does not change the depth values. Start with a small displacement scale and inspect the result. If your downstream workflow expects near objects to be black, select Invert depth before generating the file.

Because the values are relative, animate within a single still. A camera move built from one map is stable; cutting between maps generated from different frames is not.

Quick answer: when should you use Depth Map Generator?

Use Imagic AI Depth Map Generator when you need to estimate a grayscale depth map from a single photo. It is best for parallax effects, 3D photo compositing, and depth-based blur or lighting effects, runs in the browser workflow, and does not require signup for the core tool.

Photos with a clear subject against a distinctly different background give the most useful depth separation.

Which image tool should you pick?

JobPick thisWhy
parallax effects, 3D photo compositing, and depth-based blur or lighting effectsDepth Map GeneratorIt solves this job directly with the fewest settings.
precision measurement — this estimates relative depth, not exact distancesTilt-Shift EffectThat workflow changes a different property of the image.
Many files at onceBatch ProcessorBatch mode keeps repeated work consistent and exports one ZIP.

When does Depth Map Generator fail?

  • It is not the right first step when precision measurement — this estimates relative depth, not exact distances.
  • For production publishing, inspect the downloaded image at 100% zoom before replacing the original file.

Frequently asked questions

Is Depth Map Generator free?

Yes, Depth Map Generator is free to use for the core browser-based workflow.

Do I need to create an account for Depth Map Generator?

No, the core image tools work without signup.

What should I check before downloading?

Preview the result, compare edges and text at 100% zoom, and keep the original until the export is verified.

Which tool should I use instead?

Use Tilt-Shift Effect when your image needs that workflow before or after Depth Map Generator.

✓ Free, no signup✓ No watermarks✓ Files processed securely

More tools