Does error level analysis still work on AI-generated images?
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 applies the same ordering to moving images.
Cite
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.- Jonah WeissStaffVerification and standards editor ·
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, 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.
- 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.
- 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.
- 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? 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
- 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.
- Record what you have: file type, pixel size, where it came from. A web-sized image is not camera-original.
- 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.
- Check provenance data next, since a signed history answers more than a texture map. See how to check an image for Content Credentials.
- Look at content: shadows, reflections, hands, text, repeated textures. Ask the source for the original file and the neighbouring frames.
- 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 covers the checks that go beyond compression.
Write something first.
Give people something to work with: at least 30 words on what happened and what you tried.
That is too long. Keep it under 6,000 characters.
Write the question as the title, 15 to 140 characters, no links.
Pick a category.
Add a name (2 to 40 characters, no links).
That email address does not look right.
That was quick. Read the thread, then try again.
The form expired. Reload the page and post again.
Something went wrong with the form. Reload and try again.
Please complete the check and post again.
Limit reached for now. Try again later.
This thread is closed to new replies.
This thread no longer accepts replies.
Something went wrong with the form. Reload and try again.
Post a reply or question first (name and email), then this browser can vote, edit and accept answers.
You cannot vote on your own post.
Only the author (within 30 days) or the forum team can do that.
That email already has an account. Use your sign-in link instead.
New accounts are paused for the moment. Try again later.
That was already posted.
2 answers
- Accepted answerJonah WeissStaffVerification and standards editor ·
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 applies the same ordering to moving images.
- Noor A.Member ·
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.