2017 © Pedro Peláez
 

library image

Based on Creolab\Image. Manipulate images, create thumbs, crop...

image

lostcause/image

Based on Creolab\Image. Manipulate images, create thumbs, crop...

  • Wednesday, February 11, 2015
  • by lostcause
  • Repository
  • 1 Watchers
  • 3 Stars
  • 62 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 6 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Note:

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

Image

Resize, crop and cache images for Laravel 4. Framework agnostic coming soon., (*2)

Installation

Simply add the following to your composer.json file:, (*3)

"lostcause/image": "dev-master"

And you can also add the service provider to app/config/app.php:, (*4)

'Creolab\Image\ImageServiceProvider',

And register the facade in the same file under aliases:, (*5)

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

Usage

You can use the library directly in your views like this:, (*6)

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

Also to generate square thumbs:, (*7)

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

Bitdeli Badge, (*8)

The Versions

11/02 2015

dev-master

9999999-dev

Based on Creolab\Image. Manipulate images, create thumbs, crop...

  Sources   Download

MIT

The Requires

 

laravel image crop thumb