Skip to content

Commit

Permalink
[BUGFIX] better horizontal center of placeholder text
Browse files Browse the repository at this point in the history
  • Loading branch information
ulrichmathes committed Oct 24, 2024
1 parent a241df8 commit c676bcd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Classes/Service/PlaceholderImageService.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ private function generateBitmap(int $width, int $height, string $format, string
'fontColor' => self::COLOR,
'fontSize' => round($width / 9),
'align' => 'center',
'offset' => implode(',', [0, $height / 1.75]),
'offset' => implode(',', [0, $height / 2 + ($width / 9 / 3)]),
],
];

Expand Down
2 changes: 1 addition & 1 deletion Resources/Private/Templates/Placeholder.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c676bcd

Please sign in to comment.