creolab / image by bstrahija

Manipulate images, create thumbs, crop...
663
9
2
Package Data
Maintainer Username: bstrahija
Maintainer Contact: boris@creolab.hr (Boris Strahija)
Package Create Date: 2013-10-03
Package Last Update: 2014-10-15
Language: PHP
License: Unknown
Last Refreshed: 2024-12-15 03:00:55
Package Statistics
Total Downloads: 663
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 9
Total Watchers: 2
Total Forks: 6
Total Open Issues: 0

Image

Resize, crop and cache images for Laravel 4. Framework agnostic coming soon.

Installation

Simply add the following to your composer.json file:

"creolab/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:

'Image' => 'Creolab\Image\ImageFacade',

Usage

You can use the library directly in your views like this:

<img src="{{ Image::resize('public/path/to/image.jpg', 640, 480) }}">

Also to generate square thumbs:

<img src="{{ Image::thumb('public/path/to/image.jpg', 80) }}">

Bitdeli Badge