mirror of
https://github.com/e107inc/e107.git
synced 2025-04-22 05:31:58 +02:00
Make thumbnails progressive for performance.
This commit is contained in:
parent
ec2f6c2dc2
commit
edba19ef0a
@ -281,7 +281,12 @@ class e_thumbpage
|
||||
{
|
||||
$thumb = PhpThumbFactory::create($this->_src_path);
|
||||
$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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user