@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

authored by

Guy Warner and committed by
epriestley
b23697ee 0ce31211

+2 -2
+2 -2
src/applications/files/PhabricatorImageTransformer.php
··· 393 393 case 'image/png': 394 394 if (function_exists('imagepng')) { 395 395 ob_start(); 396 - imagepng($data); 396 + imagepng($data, null, 9); 397 397 return ob_get_clean(); 398 398 } 399 399 break; ··· 407 407 $img = ob_get_clean(); 408 408 } else if (function_exists('imagepng')) { 409 409 ob_start(); 410 - imagepng($data); 410 + imagepng($data, null, 9); 411 411 $img = ob_get_clean(); 412 412 } else if (function_exists('imagegif')) { 413 413 ob_start();