Skip to content

Commit

Permalink
Merge pull request #539 from seamuslee001/image_header_fix
Browse files Browse the repository at this point in the history
Fix issue where by some large placeholders aren't rendering behind ap…
  • Loading branch information
mattwire authored Oct 8, 2022
2 parents 8418b51 + cbc7751 commit 3781691
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CRM/Mosaico/Graphics/Intervention.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,9 @@ public function sendPlaceholder($width, $height) {

// $img->response returns a \Symfony\Component\HttpFoundation\Response object which will call __toString unless we pass in the send() method in Drupal8.
$response = $img->response('png');
header("Content-type: image/png");
if (is_object($response)) {
echo $response->send();
echo $response->sendContent();
}
else {
echo $response;
Expand Down

0 comments on commit 3781691

Please sign in to comment.