mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-23 15:22:41 +01:00
PNG thumbnail compression
Summary: Fixes T3800 Test Plan: upload png and check size Reviewers: epriestley Reviewed By: epriestley CC: Korvin, aran Maniphest Tasks: T3800 Differential Revision: https://secure.phabricator.com/D6942
This commit is contained in:
parent
0ce3121170
commit
b23697eec9
1 changed files with 2 additions and 2 deletions
|
@ -393,7 +393,7 @@ final class PhabricatorImageTransformer {
|
||||||
case 'image/png':
|
case 'image/png':
|
||||||
if (function_exists('imagepng')) {
|
if (function_exists('imagepng')) {
|
||||||
ob_start();
|
ob_start();
|
||||||
imagepng($data);
|
imagepng($data, null, 9);
|
||||||
return ob_get_clean();
|
return ob_get_clean();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -407,7 +407,7 @@ final class PhabricatorImageTransformer {
|
||||||
$img = ob_get_clean();
|
$img = ob_get_clean();
|
||||||
} else if (function_exists('imagepng')) {
|
} else if (function_exists('imagepng')) {
|
||||||
ob_start();
|
ob_start();
|
||||||
imagepng($data);
|
imagepng($data, null, 9);
|
||||||
$img = ob_get_clean();
|
$img = ob_get_clean();
|
||||||
} else if (function_exists('imagegif')) {
|
} else if (function_exists('imagegif')) {
|
||||||
ob_start();
|
ob_start();
|
||||||
|
|
Loading…
Reference in a new issue