diff options
| author | Marc Alexander <admin@m-a-styles.de> | 2016-12-18 20:40:42 +0100 |
|---|---|---|
| committer | Marc Alexander <admin@m-a-styles.de> | 2016-12-18 20:40:42 +0100 |
| commit | 48659c2ce198a924b599191bf4b19d0014074f90 (patch) | |
| tree | bff51e9a477f00c99ee5589740c88f78cfc0b539 | |
| parent | aa6c2fae5cb6520f1f642767762e55a374d6c5bd (diff) | |
| parent | 71f82f2615302da12f00e925cd40522b9a010257 (diff) | |
| download | forums-48659c2ce198a924b599191bf4b19d0014074f90.tar forums-48659c2ce198a924b599191bf4b19d0014074f90.tar.gz forums-48659c2ce198a924b599191bf4b19d0014074f90.tar.bz2 forums-48659c2ce198a924b599191bf4b19d0014074f90.tar.xz forums-48659c2ce198a924b599191bf4b19d0014074f90.zip | |
Merge pull request #4586 from Crizz0/ticket/14770
[ticket/14770] Reduce plupload resize quality
| -rw-r--r-- | phpBB/phpbb/plupload/plupload.php | 2 | ||||
| -rw-r--r-- | tests/plupload/plupload_test.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/phpbb/plupload/plupload.php b/phpBB/phpbb/plupload/plupload.php index 7f6267ed32..04d681cea6 100644 --- a/phpBB/phpbb/plupload/plupload.php +++ b/phpBB/phpbb/plupload/plupload.php @@ -266,7 +266,7 @@ class plupload if ($this->config['img_max_height'] > 0 && $this->config['img_max_width'] > 0) { $resize = sprintf( - 'resize: {width: %d, height: %d, quality: 100},', + 'resize: {width: %d, height: %d, quality: 85},', (int) $this->config['img_max_width'], (int) $this->config['img_max_height'] ); diff --git a/tests/plupload/plupload_test.php b/tests/plupload/plupload_test.php index 2f47bf2b39..c3fa2b9bad 100644 --- a/tests/plupload/plupload_test.php +++ b/tests/plupload/plupload_test.php @@ -24,7 +24,7 @@ class phpbb_plupload_test extends phpbb_test_case array( 130, 150, - 'resize: {width: 130, height: 150, quality: 100},' + 'resize: {width: 130, height: 150, quality: 85},' ), ); } |
