1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-22 14:13:03 +02:00

Thumbnailer: Added option for on-the-fly conversion to WebP format. Example: toImage($src, ['w'=>'type'=>'webp']);

This commit is contained in:
Cameron
2020-12-08 09:10:26 -08:00
parent 005bff7e59
commit a094a8fb73
6 changed files with 110 additions and 28 deletions

View File

@@ -27,7 +27,7 @@
}
catch(Exception $e)
{
$this->assertTrue(false, "Couldn't load e_thumbnail object");
$this->assertTrue(false, $e->getMessage());
}
$this->thm->setCache(false);
@@ -157,7 +157,13 @@
),
// Test Converting JPEG to WebP and resize. (Stored index file is saved with a .jpg extension but encoded as WebP)
17 => array (
'src' => 'e_PLUGIN/gallery/images/butterfly.jpg',
'w' => 222,
'h' => 272,
'type'=>'webp'
),
);