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:
BIN
e107_tests/tests/_data/thumbnailTest/image_14.png
Normal file
BIN
e107_tests/tests/_data/thumbnailTest/image_14.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.5 KiB |
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user