Skip to content

Commit

Permalink
fix title size
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Feb 4, 2025
1 parent a751e25 commit 359f8c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Controller/Socials/PostThumbnailController.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ private function createImage(string $title, string $imageFilePath): void
$drawer = $image->draw();

$blackFont = $this->thumbnailGenerator->createFont(FontFile::SOURCE_SANS_BOLD, '24292e', 100);
$drawer->text($title, $blackFont, new Point(130, 340), 0, 1800);

$greenFont = $this->thumbnailGenerator->createFont(FontFile::INTER, '59a35e', 40);

Expand All @@ -51,6 +50,8 @@ private function createImage(string $title, string $imageFilePath): void
return;
}

$drawer->text($post->getTitle(), $blackFont, new Point(130, 340), 0, 1800);

if ($post->getAuthor() === 'samsonasik') {
$authorName = 'Abdul Malik Ikhsan';
$authorPicture = __DIR__ . '/../../../public/assets/images/samsonasik_circle.jpg';
Expand Down

0 comments on commit 359f8c7

Please sign in to comment.