PHPackages                             jpeer/lumen-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. jpeer/lumen-image

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

jpeer/lumen-image
=================

Image manipulation library Lumen Framework based on Imagine and inspired by Croppa for easy url based manipulation

v1.0.2(9y ago)0583MITPHPPHP &gt;=5.4.0

Since Oct 7Pushed 9y ago1 watchersCompare

[ Source](https://github.com/JPeer264/lumen-image)[ Packagist](https://packagist.org/packages/jpeer/lumen-image)[ Docs](https://github.com/jpeer/lumen-image)[ RSS](/packages/jpeer-lumen-image/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

Lumen image
===========

[](#lumen-image)

Lumen Image is an image manipulation package for Lumen framework adapted from [Folklore - Laravel image](https://github.com/Folkloreatelier/laravel-image) and 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.

### Credits:

[](#credits)

This package is an adaptation of image manipulation library created by [Folklore - Laravel image](https://github.com/Folkloreatelier/laravel-image) for lumen framework.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[](#this-package-is-an-adaptation-of-image-manipulation-library-created-by-folklore---laravel-image-for-lumen-framework)

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

```
