Skip to content

This tool compares the original image to a recompressed version. This can make manipulated regions stand out in various ways. For example they can be darker or brighter than similar regions which have not been manipulated.

License

Notifications You must be signed in to change notification settings

GaneshKandu/imageanalysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Error Level Analysis

This tool compares the original image to a recompressed version. This can make manipulated regions stand out in various ways. For example they can be darker or brighter than similar regions which have not been manipulated.

JPEG Quality

This should match the original quality of the image that has been edited.

Error Scale

Makes the differences between the original and the recompressed image bigger

best works with jpeg image

Requirement

PHP 5.3+ and GD extension installed

Get Started

Installation

This library is designed to be installed via Composer.

Add the dependency into your projects composer.json.

{
  "require": {
    "ganeshkandu/imageanalysis": "*"
  }
}

Download the composer.phar

curl -sS https://getcomposer.org/installer | php

Install the library.

php composer.phar install

or

To add in in your dependencies

php composer.phar require ganeshkandu/imageanalysis

USAGE

<?php

include "vendor/autoload.php";

use ImageAnalysis\ImageAnalysis;

/*
	@desc This can make manipulated regions stand out in various ways.
		For example they can be darker or brighter than similar regions
		which have not been manipulated.
	@author ganesh kandu <[email protected]>
	@param image location
	@param Quality
	@param Scale
	@return image resource
*/

$out = ImageAnalysis::ELA('sample.jpg',80,10);

header('Content-Type: image/jpeg');

imagejpeg($out);

imagedestroy($out);

inspired from photo forensics

Main Developers

About

This tool compares the original image to a recompressed version. This can make manipulated regions stand out in various ways. For example they can be darker or brighter than similar regions which have not been manipulated.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages