Skip to content
/ ELA Public

Java program to perform error level analysis on images

Notifications You must be signed in to change notification settings

rstreet85/ELA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ELA - Error Level Analysis

Description

A pure Java implementation of the Error Level Analysis method demonstrated in Krawetz, N. 'A Picture's Worth... Image Analysis and Forensics', 2007.

A suspect image is JPEG-compressed to 95%, and the difference between the original and compressed image is computed, then scaled. Areas with high error levels (non-back pixels) represent areas of potential tampering. Wikipedia Article

By default, program overlays areas of high compression error over the original image in the output (original remains unaltered).

Example:

Original Image: Original Image Doctored Image: Doctored Image Error-level Image: Error-level Image Masked Output Image: Masked Image

Usage

Single file mode example:

java -Xmx4096m -jar ELA.jar test/test1.jpg

Directory mode example:

java -Xmx4096m -jar ELA.jar test