Luminance Gradient Scanner
Maps brightness gradients across an image using the Sobel operator, in three views: magnitude as a heatmap, gradient angle as colour, or raw grayscale. An exploration tool — it shows you where edge detail sits, it does not judge the image.
Drag & drop a file here, Ctrl+V to paste, oror
Runs in your browser
Sobel Gradient Operator
Computes horizontal and vertical gradients using a 3×3 Sobel kernel, then combines them into a magnitude map showing brightness transitions.
Direction Analysis
Encodes the gradient angle at each pixel as a colour hue, and reports the strongest of eight 45° sectors. This is edge orientation — the direction brightness changes in, not the direction light comes from.
100% Private
All analysis runs locally in your browser via Web Worker. Nothing is uploaded to any server.
How it works
How luminance gradient analysis works
The Luminance Gradient Scanner converts the image to grayscale, then applies a 3×3 Sobel operator to compute horizontal and vertical brightness derivatives. The resulting magnitude map shows where brightness changes rapidly — edges, texture, hard shadow lines — versus gradually, as on skies and flat walls. Alongside the map it reports the mean and standard deviation of gradient magnitude, the maximum, and the strongest of eight 45° direction sectors. Those are descriptions of edge structure. They are not a manipulation test, and the tool deliberately returns no verdict: a splice and a busy patch of foliage are the same thing to a gradient operator. For noise-level detection, combine with the Noise Analysis Scanner.
Understanding the controls
Heatmap mode maps gradient magnitude from blue (flat, low gradient) through green and yellow to red (strong edges). Direction mode encodes the gradient angle as hue and magnitude as brightness, so regions whose edges run the same way share a hue — useful for comparing two areas that should have the same structure. Grayscale mode shows raw magnitude in black-and-white. Amplification (0.5–3×) scales the gradient for visibility — increase it on low-contrast images, decrease on high-contrast ones. The overlay toggle blends the gradient map at 50% opacity with the original for easier spatial orientation. Use the Re-run button to adjust parameters without re-uploading. For compression-based analysis, try the ELA Scanner.
What the direction view shows
The gradient at a pixel points across the brightness change, so the direction view is a map of edge orientation: it follows the outlines of objects and the texture on their surfaces. The scanner reports the strongest of eight 45° sectors, weighted by magnitude and ignoring pixels below half the mean. Note what this is not — a light source. The outline of a cast shadow carries normals in every direction whatever the light is doing, which is why an earlier version of this tool reported a lighting verdict and why that verdict was removed rather than re-tuned. For copy-paste forgery analysis, use Clone Detection. For JPEG quality splice detection, try the JPEG Ghost Scanner.
Who uses luminance gradient analysis
Forensic examiners use gradient maps as one view among several when reading an image closely, alongside compression and texture views rather than instead of them. Journalism fact-checkers use them to inspect a region a source has questioned. Retouchers and photographers use them to see where edge detail sits in a frame — halo artefacts around a masked subject, over-sharpening, blown highlights that carry no gradient at all. In every case the output is something to look at and interpret; nothing here decides whether an image was edited. For metadata-level verification, combine with the Authenticity Checker. For a comprehensive forensic workflow, visit the photo forensics hub.
Gradient analysis answers a narrow question — where does brightness change fastest, and in which direction — and it answers it about every image equally, edited or not. It is a way of seeing, and it is most useful next to views that measure something different. For best results, combine the Luminance Gradient Scanner with the Noise Analysis Scanner (texture-level manipulation) and the ELA Scanner (compression-level manipulation). All processing runs entirely in your browser via a Web Worker — your images are never uploaded. For AI-generated image detection, use the AI Detector. Learn more in our articles on detecting edited photos and image forensics guide.