Skip to content

Commit c676bcd

Browse files
committed
[BUGFIX] better horizontal center of placeholder text
1 parent a241df8 commit c676bcd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Classes/Service/PlaceholderImageService.php

+1-1
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

+1-1
Loading

0 commit comments

Comments
 (0)