1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-18 04:12:00 +02:00

Intervention image manipulation library added.

This commit is contained in:
Cameron
2020-12-06 10:53:46 -08:00
parent 1f38b3b3dd
commit d564c5399c
191 changed files with 17974 additions and 75 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

@@ -135,6 +135,13 @@
// 'c' => 'r', // crop right
),
// Test Resize Auto-disabled low resolution icons.
14 => array (
'src' => 'e_IMAGE/e107_icon_32.png',
'w' => 80,
'h' => 0,
// 'c' => 'r', // crop right
),
);
@@ -146,11 +153,12 @@
$this->thm->checkSrc();
list($file,$ext) = explode(".",$val['src']);
unset($file);
$generatedImage = $this->thm->sendImage();
$storedImage = $this->thumbPath."image_".$index.".".$ext;
$compareMachine = new compareImages($storedImage);
$diff = $compareMachine->compareWith($generatedImage);
$compare = new compareImages($storedImage);
$diff = $compare->compareWith($generatedImage);
$status = ($diff < 5);