PHPackages                             dzonydvlp/laravel-folklore-image - 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. dzonydvlp/laravel-folklore-image

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

dzonydvlp/laravel-folklore-image
================================

Image manipulation library for Laravel based on Imagine and inspired by Croppa for easy url based manipulation. This is a fork of laravel folklore image

2.4(1mo ago)013MITPHPPHP &gt;=5.5.9|^7.2|^8.0CI passing

Since Apr 16Pushed 1mo agoCompare

[ Source](https://github.com/dzonydvlp/laravel-folklore-image)[ Packagist](https://packagist.org/packages/dzonydvlp/laravel-folklore-image)[ Docs](http://github.com/Folkloreatelier/laravel-image)[ RSS](/packages/dzonydvlp-laravel-folklore-image/feed)WikiDiscussions 2.x Synced 1mo ago

READMEChangelog (4)Dependencies (16)Versions (5)Used By (0)

Laravel Image
=============

[](#laravel-image)

Laravel Image is an image manipulation package for Laravel 4 and 5 based on the [PHP Imagine library](https://github.com/avalanche123/Imagine). It is inspired by [Croppa](https://github.com/BKWLD/croppa) as it can use specially formatted urls to do the manipulations. It supports basic image manipulations such as resize, crop, rotation and flip. It also supports effects such as negative, grayscale, gamma, colorize and blur. You can also define custom filters for greater flexibility.

[![Latest Stable Version](https://camo.githubusercontent.com/b16ac9b75752ed4b4b5d1797ffb663b22a9fa772f38811de764f8a14379d5b47/68747470733a2f2f706f7365722e707567782e6f72672f666f6c6b6c6f72652f696d6167652f762f737461626c652e737667)](https://packagist.org/packages/folklore/image)[![Build Status](https://camo.githubusercontent.com/71e21c58e25f614afb63d1914c6f1c58a6851acd22443a3e387256c601d8dacc/68747470733a2f2f7472617669732d63692e6f72672f466f6c6b6c6f72656174656c6965722f6c61726176656c2d696d6167652e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/Folkloreatelier/laravel-image)[![Total Downloads](https://camo.githubusercontent.com/9d8707593cdffcbfcf539b7c25ebfadf2da3f9b53606b338f77d71ae34aa2a6c/68747470733a2f2f706f7365722e707567782e6f72672f666f6c6b6c6f72652f696d6167652f646f776e6c6f6164732e737667)](https://packagist.org/packages/folklore/image)

The main difference between this package and other image manipulation libraries is that you can use parameters directly in the url to manipulate the image. A manipulated version of the image is then saved in the same path as the original image, **creating a static version of the file and bypassing PHP for all future requests**.

For example, if you have an image at this URL:

```
/uploads/photo.jpg

```

To create a 300x300 version of this image in black and white, you use the URL:

```
/uploads/photo-image(300x300-crop-grayscale).jpg

```

To help you generate the URL to an image, you can use the `Image::url()` method

```
Image::url('/uploads/photo.jpg',300,300,array('crop','grayscale'));
```

or

```
