1
0
mirror of https://github.com/Intervention/image.git synced 2025-01-17 20:28:21 +01:00
2013-01-29 19:59:51 +01:00
2013-01-19 16:07:09 +01:00
2013-01-29 17:51:26 +01:00
2013-01-27 12:40:45 +01:00
2013-01-27 12:31:46 +01:00
2013-01-29 19:59:51 +01:00
2013-01-19 16:07:09 +01:00
2013-01-29 17:50:55 +01:00

Intervention Image Class

Image handling and manipulation. Made to work with Laravel 4 but runs also standalone.

Installation

You can install this Image class quick and easy with Composer.

Require the package via Composer in your composer.json.

"intervention/image": "dev-master"

Run Composer to update the new requirement.

$ composer update

The Image class are built to work with the Laravel 4 Framework. The integration is done in seconds.

Open your Laravel config file config/app.php and add the following lines.

In the $providers array add the service providers for this package.

'providers' => array(

    ...

    'Intervention\Image\ImageServiceProvider'

),

Add the facade of this package to the $aliases array.

'aliases' => array(

    ...

    'Image' => 'Intervention\Image\Facades\Image',

),

Usage

  • Image::__construct - Create new instance of Image class
  • Image::make - Create new image resource from image file
  • Image::resize - Resize image based on given width and/or height
  • Image::grab - Cut out a detail of the image in given ratio and resize to output size
  • Image::insert - Insert another image on top of the current image
  • Image::pixelate - Pixelate current image
  • Image::greyscale - Turn current image into a greyscale version
  • Image::reset - Reset to original image resource
  • Image::save - Save image in filesystem
Description
No description provided
Readme 11 MiB
Languages
PHP 100%