mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-27 16:00:59 +01:00
Improve meme text outlining
Summary: Fixed T2398 Test Plan: Ran a local test. It looked a tad better. Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Maniphest Tasks: T2398 Differential Revision: https://secure.phabricator.com/D4779
This commit is contained in:
parent
f4971b0858
commit
384244fa30
1 changed files with 7 additions and 7 deletions
|
@ -180,9 +180,9 @@ final class PhabricatorImageTransformer {
|
|||
if (Filesystem::pathExists($font_root.'impact.ttf')) {
|
||||
$font_path = $font_root.'impact.ttf';
|
||||
}
|
||||
$white = imagecolorallocate($img, 255, 255, 255);
|
||||
$black = imagecolorallocate($img, 0, 0, 0);
|
||||
$border_width = 3;
|
||||
$text_color = imagecolorallocate($img, 255, 255, 255);
|
||||
$border_color = imagecolorallocatealpha($img, 0, 0, 0, 110);
|
||||
$border_width = 4;
|
||||
$font_max = 200;
|
||||
$font_min = 5;
|
||||
for ($i = $font_max; $i > $font_min; $i--) {
|
||||
|
@ -198,8 +198,8 @@ final class PhabricatorImageTransformer {
|
|||
$i,
|
||||
$x,
|
||||
$y,
|
||||
$white,
|
||||
$black,
|
||||
$text_color,
|
||||
$border_color,
|
||||
$border_width,
|
||||
$font_path,
|
||||
$upper_text);
|
||||
|
@ -217,8 +217,8 @@ final class PhabricatorImageTransformer {
|
|||
$i,
|
||||
$x,
|
||||
$y,
|
||||
$white,
|
||||
$black,
|
||||
$text_color,
|
||||
$border_color,
|
||||
$border_width,
|
||||
$font_path,
|
||||
$lower_text);
|
||||
|
|
Loading…
Reference in a new issue