PHPackages                             devfactory/imagecache - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Image &amp; Media](/categories/media)
4. /
5. devfactory/imagecache

ActiveLibrary[Image &amp; Media](/categories/media)

devfactory/imagecache
=====================

Laravel package for generating thumbnails of images and caching them in your public files folder.

4.0.9(1y ago)1620.3k↓44.4%9[1 issues](https://github.com/DevFactoryCH/imagecache/issues)MITPHPPHP &gt;=5.4.0

Since Nov 10Pushed 10mo ago5 watchersCompare

[ Source](https://github.com/DevFactoryCH/imagecache)[ Packagist](https://packagist.org/packages/devfactory/imagecache)[ RSS](/packages/devfactory-imagecache/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (40)Used By (0)

[![Laravel](https://camo.githubusercontent.com/e90e164c5687bb6ebfc16f3a5d856441e96acf66f502df3895ef47aa852c0c72/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d342e302d6f72616e67652e7376673f7374796c653d666c61742d737175617265)](http://laravel.com)[![Laravel](https://camo.githubusercontent.com/fefa73cbcb138f313755edeb816d67030c8ca82a24371d2c30c4605f1a1d6b86/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d352e302d6f72616e67652e7376673f7374796c653d666c61742d737175617265)](http://laravel.com)[![License](https://camo.githubusercontent.com/30597ff9a350144f03bffdd9183e16468e0b3ca1193e1d08591d992622738d55/687474703a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://tldrlegal.com/license/mit-license)

Imagecache
==========

[](#imagecache)

Laravel 4/5 package that allows you to create image thumbnails according to predefined presets, and store them in your Laravel public folder to serve them up without generating them on each page load.

Installation
------------

[](#installation)

Using Composer, edit your `composer.json` file to require `devfactory/imagecache`.

##### Laravel 5

[](#laravel-5)

```
"require": {
	"devfactory/imagecache": "3.0.*"
}

```

##### Laravel 4

[](#laravel-4)

```
"require": {
	"devfactory/imagecache": "2.1.*"
}

```

Then from the terminal run

```
composer update

```

Then in your `app/config/app.php` file register the following service providers:

```
'Intervention\Image\ImageServiceProvider',
'Devfactory\Imagecache\ImagecacheServiceProvider',
```

And the Facade:

```
'Imagecache'      => 'Devfactory\Imagecache\Facades\ImagecacheFacade',
```

Publish the config:

##### Laravel 5

[](#laravel--5)

```
php artisan vendor:publish

```

##### Laravel 4

[](#laravel-4-1)

```
php artisan config:publish devfactory/imagecache

```

Usage
-----

[](#usage)

Define some presets in:

##### Laravel 5

[](#laravel--5-1)

`config/imagecache.presets.php`

##### Laravel 4

[](#laravel--4)

`app/config/packages/devfactory/imagecache/presets.php`

```
