Add (tint)
This commit is contained in:
@@ -185,7 +185,6 @@ private static function setPostImage($post)
|
||||
|
||||
$image_content = $image_response->body();
|
||||
|
||||
|
||||
// Get the size of the image content in KB
|
||||
$imageSizeInKb = strlen($image_response->body()) / 1024;
|
||||
|
||||
@@ -194,12 +193,11 @@ private static function setPostImage($post)
|
||||
continue;
|
||||
}
|
||||
|
||||
$post_description = strtoupper(now()->format('j M')) . " • " . $post->main_keyword . " • " . markdown_min_read($post->body);
|
||||
$post_description = strtoupper(now()->format('j M')).' • '.$post->main_keyword.' • '.markdown_min_read($post->body);
|
||||
|
||||
$image = ImageGen::getMainImage($image_content, 1007, 567);
|
||||
$og_image = ImageGen::getOpenGraphImage($image_content, 1007, 567, $post->title, $post_description);
|
||||
|
||||
|
||||
$epoch_now_timestamp = epoch_now_timestamp();
|
||||
$filename = $post->slug.'-'.$epoch_now_timestamp.'.jpg';
|
||||
$og_filename = $post->slug.'-'.$epoch_now_timestamp.'_og.jpg';
|
||||
|
||||
Reference in New Issue
Block a user