Skip to content

Commit 347e14d

Browse files
committed
[BUGFIX] better horizontal center of placeholder text
1 parent 653aa56 commit 347e14d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Classes/Service/PlaceholderImageService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ private function generateBitmap(int $width, int $height, string $format, string
6060
'fontColor' => self::COLOR,
6161
'fontSize' => round($width / 9),
6262
'align' => 'center',
63-
'offset' => implode(',', [0, $height / 1.75]),
63+
'offset' => implode(',', [0, $height / 2 + ($width / 9 / 3)]),
6464
],
6565
];
6666

Resources/Private/Templates/Placeholder.svg

Lines changed: 1 addition & 1 deletion
Loading

0 commit comments

Comments
 (0)