https://github.com/ganeshkandu/imageanalysis
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.
https://github.com/ganeshkandu/imageanalysis
analysis composer ela error-level-analysis forensic image-analysis images manipulated-regions-stand packagist php
Last synced: 8 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/ganeshkandu/imageanalysis
- Owner: GaneshKandu
- License: agpl-3.0
- Created: 2018-05-06T07:49:40.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-06-12T12:08:36.000Z (over 7 years ago)
- Last Synced: 2025-04-01T05:11:29.995Z (9 months ago)
- Topics: analysis, composer, ela, error-level-analysis, forensic, image-analysis, images, manipulated-regions-stand, packagist, php
- Language: PHP
- Size: 47.9 KB
- Stars: 5
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# 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](https://getcomposer.org/doc/).
Add the dependency into your projects composer.json.
```
{
"require": {
"ganeshkandu/imageanalysis": "*"
}
}
```
Download the composer.phar
``` bash
curl -sS https://getcomposer.org/installer | php
```
Install the library.
``` bash
php composer.phar install
```
#### or
> To add in in your dependencies
``` bash
php composer.phar require ganeshkandu/imageanalysis
```
# USAGE
```php
@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](https://29a.ch/2015/08/16/forensically-photo-forensics-for-the-web)
# Main Developers
* **Ganesh Kandu** [Ganesh Kandu](https://github.com/GaneshKandu)
* **Contact** [kanduganesh@gmail.com](mailto:kanduganesh@gmail.com) :envelope: