Depth Map Generator

Generate depth maps from images using brightness, saturation, and edge analysis. Creates grayscale depth maps where lighter pixels indicate closer objects and darker pixels indicate further objects.

Click to upload file or drag and drop file here

Maximum file size: 20MB Supported formats: image/jpeg, image/png, image/webp, image/bmp, image/tiff

Upload an image to generate its depth map

Algorithm used to calculate depth values

Invert the depth map (dark = close, light = far)

Apply edge detection to enhance object boundaries in depth map

0 1 10

Apply gaussian blur to smooth the depth map

0 0.5 1

How much brightness affects depth calculation (combined mode only)

0 0.3 1

How much color saturation affects depth calculation (combined mode only)

0 0.2 1

How much edges affect depth calculation (combined mode only)

Output image format for depth map

Quality setting for lossy formats (JPEG, WebP)

Key Facts

Category
Design & Color
Input Types
file, select, checkbox, range, number
Output Type
file
Sample Coverage
4
API Ready
Yes

Overview

Depth Map Generator is an online design tool for generate depth maps from images using brightness, saturation, and edge analysis. creates grayscale depth maps where lighter pixels indicate closer objects and darker pixels indicate further objects. It is especially useful when working with image files content.

When to Use

  • Use it when you need to convert image files content quickly in the browser.
  • Helpful for design workflows that need repeatable inputs and fast results.
  • A good fit when you want to test with real files before running the same workflow in code or API calls.

How It Works

  • Provide Image File, Depth Calculation Method, Invert Depth Map, Enhance Edges as input to the tool.
  • The tool processes the request and returns a file result.
  • For file workflows, start with representative samples such as image files test files to verify edge cases and output quality.

Use Cases

Convert image files data during debugging or QA.
Validate expected output before using the API or automation flows.
Test the workflow with representative sample files and edge cases.

Try with Samples

image, png, jpg

Related Hubs

FAQ

What does Depth Map Generator do?

Depth Map Generator helps you convert image files content online without setting up a separate local script or app.

When should I use this tool?

Use it when you need a quick convert workflow, want to verify output, or need a browser-based utility for design tasks.

Can I try this tool with sample data?

Yes. This page can recommend related sample files so you can test the workflow immediately.

What inputs does Depth Map Generator accept?

Depth Map Generator accepts Image File, Depth Calculation Method, Invert Depth Map, Enhance Edges and supports file uploads for 1 field.

Is there an API for Depth Map Generator?

Yes. The tool page includes an API endpoint so you can move from manual testing to scripted usage.

API Documentation

Request Endpoint

POST /en/api/tools/image-depth-map

Request Parameters

Parameter Name Type Required Description
imageFile file (Upload required) Yes Upload an image to generate its depth map
method select No Algorithm used to calculate depth values
invert checkbox No Invert the depth map (dark = close, light = far)
edgeEnhancement checkbox No Apply edge detection to enhance object boundaries in depth map
blur range No Apply gaussian blur to smooth the depth map
brightnessWeight range No How much brightness affects depth calculation (combined mode only)
saturationWeight range No How much color saturation affects depth calculation (combined mode only)
edgeWeight range No How much edges affect depth calculation (combined mode only)
format select No Output image format for depth map
quality number No Quality setting for lossy formats (JPEG, WebP)

File type parameters need to be uploaded first via POST /upload/image-depth-map to get filePath, then pass filePath to the corresponding file field.

Response Format

{
  "filePath": "/public/processing/randomid.ext",
  "fileName": "output.ext",
  "contentType": "application/octet-stream",
  "size": 1024,
  "metadata": {
    "key": "value"
  },
  "error": "Error message (optional)",
  "message": "Notification message (optional)"
}
File: File

AI MCP Documentation

Add this tool to your MCP server configuration:

{
  "mcpServers": {
    "elysiatools-image-depth-map": {
      "name": "image-depth-map",
      "description": "Generate depth maps from images using brightness, saturation, and edge analysis. Creates grayscale depth maps where lighter pixels indicate closer objects and darker pixels indicate further objects.",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=image-depth-map",
      "command": "",
      "args": [],
      "env": {},
      "isActive": true,
      "type": "sse"
    }
  }
}

You can chain multiple tools, e.g.: `https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`, max 20 tools.

Supports URL file links or Base64 encoding for file parameters.

If you encounter any issues, please contact us at [email protected]