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

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

coatesap/laravel-image
======================

Image manipulation library for Laravel 8 forked from folklore/image

v3.0.0(5y ago)0206MITPHPPHP ^8.0

Since Feb 4Pushed 5y agoCompare

[ Source](https://github.com/coatesap/laravel-image)[ Packagist](https://packagist.org/packages/coatesap/laravel-image)[ Docs](http://github.com/coatesap/laravel-image)[ RSS](/packages/coatesap-laravel-image/feed)WikiDiscussions master Synced today

READMEChangelog (5)Dependencies (8)Versions (50)Used By (0)

Fork of folklore/image for PHP 8+ and Laravel 8+
================================================

[](#fork-of-folkloreimage-for-php-8-and-laravel-8)

This brings the package up-to-date with the latest dependencies + modern PHPUnit tests.

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

[](#laravel-image)

Laravel Image is an image manipulation package for Laravel 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

```
