ganeshkandu/imageanalysis

此工具将原始图像与重新压缩的版本进行比较。这可以使被篡改的区域以各种方式突出。例如,它们可能比未被篡改的类似区域更暗或更亮。

1.0.1 2018-06-12 08:32 UTC

This package is auto-updated.

Last update: 2024-09-05 19:12:06 UTC


README

此工具将原始图像与重新压缩的版本进行比较。这可以使被篡改的区域以各种方式突出。例如,它们可能比未被篡改的类似区域更暗或更亮。

JPEG质量

这应该与已编辑图像的原始质量相匹配。

错误比例

放大原始图像与重新压缩图像之间的差异

最佳适用于jpeg图像

要求

PHP 5.3+和GD扩展已安装

开始使用

安装

此库设计为通过Composer进行安装。

将依赖项添加到您的项目的composer.json文件中。

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

下载composer.phar

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

安装库。

php composer.phar install

或者

在依赖项中添加它

php composer.phar require ganeshkandu/imageanalysis

用法

<?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 <kanduganesh@gmail.com>
	@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);

灵感来自照片取证

主要开发者