creolab/image

This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.
There is no license information available for the latest version (dev-master) of this package.

Manipulate images, create thumbs, crop...

dev-master 2014-10-15 21:40 UTC

This package is auto-updated.

Last update: 2020-01-05 16:54:56 UTC


README

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