Skip to content

Commit

Permalink
Send image to browser
Browse files Browse the repository at this point in the history
  • Loading branch information
AntikCz committed Mar 2, 2016
1 parent d71b4e0 commit 6449ccc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Expand Up @@ -80,6 +80,11 @@ $images = $invoice->create($customer, $payment);
foreach ($images as $page => $invoice) {
$invoice->save(__DIR__ . "/invoice-$page.jpg");
}

// Show first page

header('Content-Type: image/jpeg');
echo $images[0]->encode();
```

## Memory optimization
Expand Down

0 comments on commit 6449ccc

Please sign in to comment.