PHP code example of ganeshkandu / imageanalysis
1. Go to this page and download the library: Download ganeshkandu/imageanalysis library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
ganeshkandu / imageanalysis example snippets
ageAnalysis\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);
bash
curl -sS https://getcomposer.org/installer | php
bash
php composer.phar install
bash
php composer.phar