# Does error level analysis still work on AI-generated images?

Source: https://forum.aicontentauthenticity.com/thread/does-error-level-analysis-still-work-on-ai-generated-images/
Site: AI Content Authenticity Forum, category Image and video forensics
Published: 2026-11-02. Updated: 2026-11-04. Replies: 2.

## Question by Jonah Weiss (staff), 2026-11-02

Mostly no. Error level analysis finds regions of a JPEG saved at different compression levels, so it can expose a splice or a paste. An image generated whole has nothing pasted into it, so ELA has no seam to find. Treat any ELA result as a question to investigate, never as proof that an image is real or synthetic.

## What ELA actually measures

ELA resaves a JPEG at a known quality and compares the result with the original. According to the [FotoForensics ELA tutorial](https://fotoforensics.com/tutorial-ela.php), JPEG works on an 8x8 grid, and an unmodified image should degrade at roughly the same rate in every square. A region that was edited after the last save usually degrades differently, so it shows up brighter or darker than its neighbours.

That is a statement about compression history, not about content. ELA cannot see what a picture shows, who made it, or whether a camera was involved. The tutorial itself says ELA identifies regions with different compression levels and does not identify sources.

## Why generated images break the method

A splice has two compression histories, one for the host and one for the pasted part. A fully generated image has one: whatever the generator, the platform and the last editor did to it. Three things follow.

1. **No local seam.** If the whole frame came out of a model and was saved once, every square shares the same history. ELA looks uniform, which also describes a clean camera original.
2. **Many images are not JPEG at the start.** Images circulate as PNG, WebP, screenshots and app exports. The tutorial notes that ELA assumes non-JPEG files were converted from JPEG, and that formats such as WebP and HEIC use different compression, so first-save artefacts appear regardless of origin.
3. **Resaving erases the signal.** The tutorial warns that a copy of a copy of a copy may only show the resaves, and that an image resaved enough times can go fully dark. Social platforms resave on upload.

There is also a research warning for anyone tempted to treat compression traces as a fake detector. The paper [Fake or JPEG?](https://arxiv.org/abs/2403.17608) reports that many datasets for AI-image detection carry biases tied to JPEG compression and image size, and that detectors learn from those factors. Compression history is a poor proxy for "generated".

## Where ELA still earns its place

It remains useful for the question it was built for: was a photograph edited after capture?

- A regional edit on a camera JPEG, such as an object removed or added, can show as a patch with a different error level from similar surfaces.
- A generated element composited into a real photo (an inpainted face, a swapped sign) is a splice, so ELA may flag it even though the generator is irrelevant.
- A "native" PNG that carries JPEG grid artefacts was converted from a JPEG, which is worth knowing when someone claims it is a direct export.

## Procedure for a suspect image

1. Find the best-quality copy first. The tutorial suggests tracing the source with a reverse image search such as TinEye, because ELA on a small web copy mostly measures the resaves.
2. Record what you have: file type, pixel size, where it came from. A web-sized image is not camera-original.
3. Run ELA and compare like with like: edges with edges, flat surfaces with flat surfaces. One outlier among similar regions is a lead. A bright high-contrast edge is normal.
4. Check provenance data next, since a signed history answers more than a texture map. See [how to check an image for Content Credentials](/thread/how-do-i-check-an-image-for-content-credentials/).
5. Look at content: shadows, reflections, hands, text, repeated textures. Ask the source for the original file and the neighbouring frames.
6. Write the finding as "ELA shows X; it does not show Y". Do not write "ELA says fake".

## Quick reference

| Situation | What ELA can tell you | Reliability |
| --- | --- | --- |
| Camera JPEG with a local edit | Edited region may stand out | Useful, needs the original |
| Fully generated image, saved once | Looks uniform | Says nothing about origin |
| Generated element pasted into a real photo | Patch may stand out | Useful |
| Screenshot or heavily resaved copy | Mostly shows the resaves | Weak |
| Upscaled or sharpened image | Whole frame changes | Misleading |

For the upscaling case in particular, the members' discussion in [how to tell AI upscaling from full AI generation](/t/how-to-tell-ai-upscaling-from-full-ai-generation-in-submitted-images/262) covers the checks that go beyond compression.

## Reply 1 by Noor A., 2026-11-03

Agree with the framing. One practical addition: I keep the ELA output next to the original in my notes and write down which areas I compared. When a colleague asks "why did you flag this", the answer is a list of matched surfaces, not a picture of a glowing blob. It also stops me from seeing a pattern in noise.

## Reply 2 by Jonah Weiss (staff), 2026-11-04

Short version for anyone landing here: use ELA to test a claim that a real photo was edited, not to test a claim that an image is AI-made. For the second claim, start with provenance data and the source file, then add content checks. The [video deepfake thread](/thread/how-can-i-tell-if-a-video-is-a-deepfake/) applies the same ordering to moving images.

---
Cite as: AI Content Authenticity Forum, "Does error level analysis still work on AI-generated images?", https://forum.aicontentauthenticity.com/thread/does-error-level-analysis-still-work-on-ai-generated-images/, accessed 2026-12-03.
