mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 20:00:37 +02:00
Make thumbnails progressive for performance.
This commit is contained in:
@@ -281,7 +281,12 @@ class e_thumbpage
|
|||||||
{
|
{
|
||||||
$thumb = PhpThumbFactory::create($this->_src_path);
|
$thumb = PhpThumbFactory::create($this->_src_path);
|
||||||
$sizeUp = ($this->_request['w'] > 110) ? true : false; // don't resizeUp the icon images.
|
$sizeUp = ($this->_request['w'] > 110) ? true : false; // don't resizeUp the icon images.
|
||||||
$thumb->setOptions(array('correctPermissions' => true, 'resizeUp' => $sizeUp, 'jpegQuality' => $this->_thumbQuality));
|
$thumb->setOptions(array(
|
||||||
|
'correctPermissions' => true,
|
||||||
|
'resizeUp' => $sizeUp,
|
||||||
|
'jpegQuality' => $this->_thumbQuality,
|
||||||
|
'interlace' => true // improves performance
|
||||||
|
));
|
||||||
|
|
||||||
}
|
}
|
||||||
catch (Exception $e)
|
catch (Exception $e)
|
||||||
|
Reference in New Issue
Block a user