1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-23 07:12: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:
Guy Warner 2013-09-11 09:31:28 -07:00 committed by epriestley
parent 0ce3121170
commit b23697eec9

View file

@ -393,7 +393,7 @@ final class PhabricatorImageTransformer {
case 'image/png':
if (function_exists('imagepng')) {
ob_start();
imagepng($data);
imagepng($data, null, 9);
return ob_get_clean();
}
break;
@ -407,7 +407,7 @@ final class PhabricatorImageTransformer {
$img = ob_get_clean();
} else if (function_exists('imagepng')) {
ob_start();
imagepng($data);
imagepng($data, null, 9);
$img = ob_get_clean();
} else if (function_exists('imagegif')) {
ob_start();