Imagine Package for Laravel

Installs: 40 826

Dependents: 7

Suggesters: 0

Stars: 45

Watchers: 4

Forks: 7

Open Issues: 0

v3.3.0 2016-05-24 00:53 UTC


Join the chat at https://gitter.im/orchestral/platform/components

Imagine (Wrapper) Component is a Laravel 5 package wrapper for Imagine.

Latest Stable Version Total Downloads MIT License Build Status Coverage Status Scrutinizer Quality Score

Table of Content

Version Compatibility

Laravel Imagine
4.0.x 2.0.x
4.1.x 2.1.x
4.2.x 2.2.x
5.0.x 3.0.x
5.1.x 3.1.x
5.2.x 3.2.x
5.3.x 3.3.x@dev


To install through composer, simply put the following in your composer.json file:

    "require": {
        "orchestra/imagine": "~3.0"

And then run composer install from the terminal.

Quick Installation

Above installation can also be simplify by using the following command:

composer require "orchestra/imagine=~3.0"


Add Orchestra\Imagine\ImagineServiceProvider service provider in config/app.php.

'providers' => [

    // ...


Add Imagine alias in config/app.php.

'aliases' => [

    // ...

    'Imagine' => Orchestra\Imagine\Facade::class,


Here a simple example how to create a thumbnail from an image:


use Imagine\Image\Box;
use Imagine\Image\ImageInterface;
use Orchestra\Imagine\Facade as Imagine;

function create_thumbnail($path, $filename, $extension)
    $width  = 320;
    $height = 320;
    $mode   = ImageInterface::THUMBNAIL_OUTBOUND;
    $size   = new Box($width, $height);

    $thumbnail   = Imagine::open("{$path}/{$filename}.{$extension}")->thumbnail($size, $mode);
    $destination = "{$filename}.thumb.{$extension}";