mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-19 15:01:33 +02:00
Merge branch '3.2.x' into 3.3.x
This commit is contained in:
@@ -263,10 +263,13 @@ class plupload
|
||||
$resize = '';
|
||||
if ($this->config['img_max_height'] > 0 && $this->config['img_max_width'] > 0)
|
||||
{
|
||||
$preserve_headers_value = $this->config['img_strip_metadata'] ? 'false' : 'true';
|
||||
$resize = sprintf(
|
||||
'resize: {width: %d, height: %d, quality: 85},',
|
||||
'resize: {width: %d, height: %d, quality: %d, preserve_headers: %s},',
|
||||
(int) $this->config['img_max_width'],
|
||||
(int) $this->config['img_max_height']
|
||||
(int) $this->config['img_max_height'],
|
||||
(int) $this->config['img_quality'],
|
||||
$preserve_headers_value
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user