Skip to content

Commit

Permalink
Added section memory optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
AntikCz committed Mar 2, 2016
1 parent 7a17e88 commit d71b4e0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,14 @@ foreach ($images as $page => $invoice) {
}
```

## Memory optimization

```php
$invoice->setSave(function (Intervention\Image\Image $image, $page) {
$invoice->save(__DIR__ . "/invoice-$page.jpg");
});
```

## Translations
At first visit [core](https://github.com/WebChemistry/Invoice/blob/master/src/Translator.php) component.

Expand Down

0 comments on commit d71b4e0

Please sign in to comment.