Shadow Edge Orientation Map

Map the mean orientation of shadow edges in each region of the image, and see where it departs from the rest of the frame. This is an explorer for looking at an image, not a manipulation test — it returns no score and no verdict.

Drag & drop a file here, or

JPG PNG WebP BMP AVIF Max 50MB • Processed in browser • Nothing leaves your device

Runs in your browser

Shadow Edge Orientation

The tool finds strong gradients whose dark side falls below luminance 100, and averages their orientation per grid block. A block needs at least 10 such edges before it is measured at all.

What it will not tell you

It does not recover the light source and does not score authenticity. Measured against a synthetic image where every shadow points the same way, the old consistency score could not separate it from a manipulated one, so the score and the verdict were removed.

Arrow and Heatmap Overlay

Arrows carry each block's edge orientation, the heatmap shades its departure from the frame's dominant one. Grid, sensitivity and opacity are adjustable; images above 2048 px are analyzed at 2048 px.

Advertisement

How it works

What this tool actually measures

The image is split into a grid. In each block the tool finds pixels with a strong luminance gradient whose dark side, sampled 3 px back along that gradient, falls below luminance 100 — a shadow edge — and averages their orientation. A block needs at least 10 such edges before it reports anything. The result is the orientation of the shadow boundaries, which is not the same thing as the direction of the light: the gradient at an edge is the boundary normal, and the normals around a cast shadow's outline point every way regardless of where the sun is. So this is a map to look at, not a test to pass. For compression-level forgery detection, combine with the ELA Scanner or JPEG Ghost Scanner.

Reading the overlay

Each arrow carries one block's mean shadow-edge orientation. The colour ramp runs blue to amber and shows how far that block sits from the dominant orientation of this frame, scaled against the largest departure in the same image — so one block is always at the amber end, in every image, and the colours mean nothing across two different images. Amber is a place worth looking at, not a finding. Gray blocks found fewer than 10 qualifying edges, which is common in bright or flat areas. Images larger than 2048 px on the long side are analyzed at 2048 px, and the size actually used is printed under the overlay. For the same image seen as raw brightness gradients rather than shadow edges, check the Luminance Gradient tool.

Why there is no verdict here

This page used to print a consistency percentage and a three-band verdict, red included. It was measured against the samples and against a synthetic control in which every cast shadow points the same way, and it did not separate them: the clean sample and the manipulated one scored within a point of each other, the synthetic single-light control landed in the middle band, and turning every shadow 180 degrees moved it by two points. A number that cannot tell those apart has no business accusing anyone, so the score and the verdict were removed rather than re-thresholded. What is left is the overlay. Real constraints remain either way — mixed indoor lighting, curved surfaces, reflections and flat or overexposed regions all change what the edges look like. Cross-reference with Noise Analysis, Chromatic Aberration, and the Authenticity Checker for a comprehensive assessment.

Combining with other forensic tools

Shadow edge orientation is one view among several. Combine it with other manipulation detectors. Check Clone Detection for copy-paste regions. Use Demosaicing Trace to check whether the sensor interpolation trace survives at all. Run the Forgery Heatmap for a combined probability overlay. Together these tools cover compression artifacts, sensor-level patterns, pixel-level cloning, and, here, where shadow boundaries sit. Explore all forensic and utility tools at Scanly's full toolkit.

Shadow analysis runs entirely in your browser using a Web Worker — your images are never uploaded. The arrow overlay and heatmap can be downloaded as a PNG, with the caveat that the overlay is an exploratory view and carries no verdict. Start with the EXIF Checker to examine metadata before running pixel-level analysis. Learn more in our articles on detecting edited photos and image forensics guide.

Frequently Asked Questions

What does this shadow analysis tool measure?

It measures the mean orientation of shadow edges in each block of a grid. A shadow edge here is a pixel with a strong luminance gradient whose dark side, sampled 3 px back along that gradient, falls below luminance 100; a block needs at least 10 of them before it is measured. That gives you the orientation of the shadow boundaries, which is not the direction of the light — the gradient at an edge is the boundary normal, and a cast shadow outline carries normals pointing every way whatever the light is doing.

Can this tool detect Photoshop composites?

No, and it no longer claims to. It used to print a consistency percentage and a verdict; measured against the samples and against a synthetic control in which every cast shadow points the same way, that number did not separate a clean photo from a manipulated one, so it was removed rather than re-thresholded. What remains is an overlay you read yourself. For manipulation signals with a measurable basis, use Clone Detection, ELA or the Forgery Heatmap.

What do the arrow colours mean?

Each arrow carries that block's mean shadow-edge orientation, and its colour runs blue to amber with how far the block sits from the dominant orientation of the same frame. The scale is relative to the largest departure inside that one image, so some block is always at the amber end and the colours cannot be compared between two images. Amber marks a region worth looking at, not a finding. Gray blocks found fewer than 10 qualifying edges.

Why does my unedited photo show amber regions?

Because the colour is relative: every image has a block at the amber end by construction, edited or not. On top of that, multiple light sources, curved surfaces and reflections all change edge orientation legitimately, and flat or overexposed regions fall below the 10-edge minimum and go gray. Amber regions in an untouched photo are the normal result, not a warning.

How is this different from ELA or noise analysis?

ELA looks at recompression artifacts and noise analysis at the evenness of sensor noise; both return figures with a measurable basis. This tool maps where shadow boundaries sit and how their orientation varies across the frame, and returns no score. Treat it as a way of looking at an image alongside those, not as a fourth test.

Does the tool rescale my image?

Yes, above 2048 px on the long side. The analysis then runs on the scaled copy, which merges fine edges and changes which of them pass the gradient threshold, so the block figures describe that copy. The size actually used is printed in the Analyzed At box under the overlay, with the uploaded size beside it when the two differ.