| Package Data | |
|---|---|
| Maintainer Username: | lostcause |
| Maintainer Contact: | boris@creolab.hr (Boris Strahija) |
| Package Create Date: | 2015-01-29 |
| Package Last Update: | 2015-02-11 |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-11-04 15:05:06 |
| Package Statistics | |
|---|---|
| Total Downloads: | 68 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 3 |
| Total Watchers: | 1 |
| Total Forks: | 0 |
| Total Open Issues: | 0 |
This is just like Creolab/Image, I just want to rename the alias so it doesn't overlap the Intervention/Image one.
Resize, crop and cache images for Laravel 4. Framework agnostic coming soon.
Simply add the following to your composer.json file:
"lostcause/image": "dev-master"
And you can also add the service provider to app/config/app.php:
'Creolab\Image\ImageServiceProvider',
And register the facade in the same file under aliases:
'CreolabImage' => 'Creolab\Image\ImageFacade',
You can use the library directly in your views like this:
<img src="{{ CreolabImage::resize('public/path/to/image.jpg', 640, 480) }}">
Also to generate square thumbs:
<img src="{{ CreolabImage::thumb('public/path/to/image.jpg', 80) }}">