EditSafely

Extract Brightness Gradient Map

Map how fast and in which direction the brightness of a PNG changes, as greyscale or direction-coloured output.

Runs on your device, nothing uploaded

Drop images anywhere on this page

or paste with Ctrl / ⌘ + V ·

Accepts PNG · several at once

Your PNG files never leave this tab

Extract Brightness Gradient Map is JavaScript that your browser has already downloaded, and it does the whole job on your own machine. On a normal site, 200 photos straight off a camera means 1.6 GB uploaded, a wait in somebody's queue, and 240 MB downloaded again. Here it means 0 bytes up and 0 bytes down.

  • No upload
  • No file size limit
  • Works offline once loaded
  • Nothing stored or logged

How to use Extract Brightness Gradient Map

  1. 1. Add the PNG. Drop in any PNG. The tool measures the brightness slope at every pixel with a Sobel operator; transparent areas are treated as black, so cutout outlines show up as edges.
  2. 2. Choose what to show. Strength shows how fast brightness changes in greyscale. Direction colours each edge by the way it gets brighter, with red pointing right. The horizontal and vertical views are signed around mid grey.
  3. 3. Adjust and download. Raise the gain to bring out faint gradients and smooth first to ignore noise. The map updates as you go; download it as a PNG of the same size.

When to use Extract Brightness Gradient Map

Extract Brightness Gradient Map visualises the first derivative of the brightness: where it changes, how sharply, and in which direction. It is a standard building block in image analysis, edge detection and texture work, shown here as a picture you can inspect or reuse.

  • Inspecting edges and texture. The strength view makes every edge, scratch and texture grain light up against a black background, which is easier to read than the photo itself.
  • Checking lighting direction. The direction view shows at a glance which way shading falls across an object, which helps when matching lighting between composited images.
  • Teaching and debugging filters. The signed horizontal and vertical views show exactly what the separate Sobel kernels respond to, which is handy when explaining or debugging an edge detector.

Examples

Edges of a photo

Input

photo.png, strength of change

Output

Black where tones are flat, bright lines along every edge

Direction of a ramp

Input

A left-to-right brightness ramp, direction

Output

The ramp shows red: brightness rises to the right

About the Extract Brightness Gradient Map tool

Extract Brightness Gradient Map is a free online tool that works entirely inside your web browser. Map how fast and in which direction the brightness of a PNG changes, as greyscale or direction-coloured output. Because the processing happens on your own device, nothing you enter is uploaded, logged or stored anywhere.

This page is one of 292 PNG utilities on EditSafely. Each one does a single job well, and all of them follow the same rule: your input stays on your machine.

You can shape the output with 3 settings, including Show, Gain and Smooth first (blur radius, px); the result is redone automatically when you change one. The finished file is put together in browser memory and saved with the Download button, so it never touches a server on the way to your disk. 2 worked examples further down the page show exactly what the tool produces for real inputs.

Because nothing leaves your device, the tool is suitable for sensitive images such as ID scans, screenshots of internal systems or personal photos. It is also quick, since the pixels are processed on your own machine rather than by a remote API.

Frequently asked questions

Does Extract Brightness Gradient Map cost anything?

Yes, it is completely free. All 2,943 tools on EditSafely work without an account, a subscription or usage limits.

Are my files uploaded to a server?

No data leaves your device. The whole tool is JavaScript that runs inside your browser tab, so there is no upload, no server-side processing and no log of what you did. If you disconnect from the internet after the page loads, it keeps working.

Which files does Extract Brightness Gradient Map accept?

It accepts PNG images. There is no file size cap imposed by a server; very large files are limited only by your device's memory.

Do I need to sign up or install anything?

Nothing to install and no account needed. Open the page in any up-to-date browser, including on a phone or tablet, and the tool is ready.

How do I save the output?

Click the Download button once the result is ready. The file is built in your browser's memory and handed straight to your downloads folder, without passing through a server.

Related tools

All PNG Tools →