dev-master
9999999-devManipulate images, create thumbs, crop...
The Requires
- php >=5.3.0
- imagine/imagine 0.5.*
- illuminate/support ~4
laravel image crop thumb
Manipulate images, create thumbs, crop...
Resize, crop and cache images for Laravel 4. Framework agnostic coming soon., (*1)
Simply add the following to your composer.json file:, (*2)
"creolab/image": "dev-master"
And you can also add the service provider to app/config/app.php:, (*3)
'Creolab\Image\ImageServiceProvider',
And register the facade in the same file under aliases:, (*4)
'Image' => 'Creolab\Image\ImageFacade',
You can use the library directly in your views like this:, (*5)
<img src="{{ Image::resize('public/path/to/image.jpg', 640, 480) }}">
Also to generate square thumbs:, (*6)
<img src="{{ Image::thumb('public/path/to/image.jpg', 80) }}">
Manipulate images, create thumbs, crop...
laravel image crop thumb