lostcause / image by lostcause
forked from creolab/image

Based on Creolab\Image. Manipulate images, create thumbs, crop...
68
3
1
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: 2024-04-19 15:11:50
Package Statistics
Total Downloads: 68
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 3
Total Watchers: 1
Total Forks: 0
Total Open Issues: 0

Note:

This is just like Creolab/Image, I just want to rename the alias so it doesn't overlap the Intervention/Image one.

Image

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

Installation

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',

Usage

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) }}">

Bitdeli Badge