@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.

Preserve transparency in thumbnails

Summary: Add some code from a random guy on the Internet.

Test Plan: Upload a PNG file with alpha; check thumbnail.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Maniphest Tasks: T1646

Differential Revision: https://secure.phabricator.com/D3258

+2
+2
src/applications/files/PhabricatorImageTransformer.php
··· 88 88 89 89 $scale = min($x / $dx, $y / $dy); 90 90 $dst = imagecreatetruecolor($dx, $dy); 91 + imagesavealpha($dst, true); 92 + imagefill($dst, 0, 0, imagecolorallocatealpha($dst, 0, 0, 0, 127)); 91 93 92 94 // If we need to chop off some pixels, chop them off from the sides instead 93 95 // of scaling in on <0, 0>.