PHPackages                             elgervb/imagemanipulation - 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. elgervb/imagemanipulation

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

elgervb/imagemanipulation
=========================

Library for image manipulation in PHP with GD

1.2.0(10y ago)201956[3 issues](https://github.com/elgervb/imagemanipulation/issues)MITPHP

Since Aug 27Pushed 8y ago1 watchersCompare

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

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

IMAGEMANIPULATION
=================

[](#imagemanipulation)

[![Build Status](https://camo.githubusercontent.com/c6d2bfc7af141bb1af81d919ad29f4899ab17c5e2901d0134f6e54f65de04530/68747470733a2f2f7472617669732d63692e6f72672f656c67657276622f696d6167656d616e6970756c6174696f6e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/elgervb/imagemanipulation)[![Latest Stable Version](https://camo.githubusercontent.com/c89c6a74ca60b3480b2f48ccdfd24b0b9de2d531bfedb73d54374ae15b4d9ebf/68747470733a2f2f706f7365722e707567782e6f72672f656c67657276622f696d6167656d616e6970756c6174696f6e2f76657273696f6e2e737667)](https://packagist.org/packages/elgervb/imagemanipulation)
Fork me on GitHub: [![Bitdeli Badge](https://camo.githubusercontent.com/66bf401eb75e51ad0cc50ccb48ad4652b1c7b6018842a245f1fbcca731b6389f/68747470733a2f2f64327765637a68766c38323376302e636c6f756466726f6e742e6e65742f656c67657276622f696d6167656d616e6970756c6174696f6e2f7472656e642e706e67)](https://bitdeli.com/free "Bitdeli Badge")

Library to manipulate images using PHP's GD library. Most of the functionality is available through the `ImageBuilder` facade. This way chaining of image filters and thumbnailing is possible, like:

```
ImageBuilder::create( new \SplFileInfo('image.jpg') )
  ->contrast( 20 ) // increase contrast
  ->colorize( '#DB3636' ) // apply a bit of red the the image
  ->flip( ImageFilterFlip::FLIP_VERTICALLY ) // flip image vertically
  ->save( new \SplFileInfo( 'image.new.png' ) ) // save the jpg image as png with filters applied
  ->render( 80 ); // render to browser with quality 80
```

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

[](#installation)

### With composer.json:

[](#with-composerjson)

```
	"require" : {
		"elgervb/imagemanipulation": "^1.0"
	}

```

Requirements
------------

[](#requirements)

PHP version &gt;= 5.3 with GD library

FUNCTIONALITY
-------------

[](#functionality)

### Filters

[](#filters)

Lots of image filters. All of them listed below:

- brightness
- colorize
- comic
- contrast
- convolution 3x3 filters
- darken
- dodge
- duotone
- edge detect
- emboss
- find edges
- flip (horizonal, vertical, both)
- gamma correction
- gaussian blur
- grayscale
- hue rotate
- mean remove
- motion blur
- negative
- noise
- old cardboard
- opacity
- pixelate
- random blocks with custom size and color
- replace color
- reverse
- rounded corners
- scatter
- selective blur
- semi grayscale
- sepia
- sepia fast
- sharpen
- smooth
- sobel edge detect
- sobel edge enhance (based on convolution matrix)
- true color
- vignette

### Overlay

[](#overlay)

Use an image as overlay on another image. Can be configured with overlay opacity, start and end position and fill options.

### Reflection

[](#reflection)

Use the current image to make a reflection below the original image

### Image repeater

[](#image-repeater)

Repeat images on a canvas, until it fits. This way we can create Warhol like images.

### Rotate

[](#rotate)

Rotate images in degrees. When rotating an image not equal to 90, 180, 270 or 360 degrees, then optionally you can specify a background color for those oncovered edges.

### Thumbnails

[](#thumbnails)

Create thumbnails on the fly. There are several strategies to use:

- Centered strategy: create a thumb from the center of an image. Ideal for creating square thumbs from not so square images
- Max strategy: resize the image to a max width or height keeping proportions. For example: when resizing an image (300x750) on max 500 pixels, the resulting image will be 200x500 pixels
- Percentage strategy: reduce the size of an image with a certain percentage.

### Watermarking

[](#watermarking)

Add a watermark to your image. Possible positions are: top, bottom, left, right, center, top right, top left, bottom right, bottom left.

Examples
========

[](#examples)

Thumbnails
----------

[](#thumbnails-1)

You can create thumbnails in several ways

### centered

[](#centered)

create a thumbnail which is centered in the middle of the image

ParameterDefaultDescription*width*250The new width of the image in pixels*height*250The new height of the image in pixels**Examples**
[![Centered Thumb](https://camo.githubusercontent.com/4a4374c1c0880eb182ae668506bf3c0ef24f4761eda9ac48a9da41525e6e85e4/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f7468756d622f63656e74657265642f77696474683d3135303b6865696768743d3335302f646f672e6a7067)](https://camo.githubusercontent.com/4a4374c1c0880eb182ae668506bf3c0ef24f4761eda9ac48a9da41525e6e85e4/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f7468756d622f63656e74657265642f77696474683d3135303b6865696768743d3335302f646f672e6a7067)[![Centered Thumb](https://camo.githubusercontent.com/84f9edf93134b675f4681f7ea270d8f348d67b6f3792dd69337a662ea3a1d886/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f7468756d622f63656e74657265642f77696474683d3335303b6865696768743d3235302f646f672e6a7067)](https://camo.githubusercontent.com/84f9edf93134b675f4681f7ea270d8f348d67b6f3792dd69337a662ea3a1d886/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f7468756d622f63656e74657265642f77696474683d3335303b6865696768743d3235302f646f672e6a7067)[![Centered Thumb](https://camo.githubusercontent.com/99612f75d47dfdfc8e8605e4f2136103c5432b47fed81a1d65820a2eafb640c7/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f7468756d622f63656e74657265642f77696474683d3135303b6865696768743d3135302f646f672e6a7067)](https://camo.githubusercontent.com/99612f75d47dfdfc8e8605e4f2136103c5432b47fed81a1d65820a2eafb640c7/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f7468756d622f63656e74657265642f77696474683d3135303b6865696768743d3135302f646f672e6a7067)

### max

[](#max)

resize the image to a max width or height keeping proportions, thus restraining the image to a certain size

ParameterDefaultDescription*width*250The max width of the image in pixels*height*250The max height of the image in pixels**Examples**
[![Max Thumb](https://camo.githubusercontent.com/f08ea52dc437d644ac64fd5649d0c27a8c55e02f3c08a6145f37a53d229cb06a/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f7468756d622f6d61782f77696474683d3135303b6865696768743d3335302f646f672e6a7067)](https://camo.githubusercontent.com/f08ea52dc437d644ac64fd5649d0c27a8c55e02f3c08a6145f37a53d229cb06a/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f7468756d622f6d61782f77696474683d3135303b6865696768743d3335302f646f672e6a7067)[![Max Thumb](https://camo.githubusercontent.com/5635fd71373fe802cbab8806f22956270434b429791f951bf8110761f7f089c7/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f7468756d622f6d61782f77696474683d3335303b6865696768743d3235302f646f672e6a7067)](https://camo.githubusercontent.com/5635fd71373fe802cbab8806f22956270434b429791f951bf8110761f7f089c7/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f7468756d622f6d61782f77696474683d3335303b6865696768743d3235302f646f672e6a7067)[![Max Thumb](https://camo.githubusercontent.com/0fe4bc83d8454f32c3b5d6cca0973c12780b4280088c84ab5a26926d7076a6a0/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f7468756d622f6d61782f77696474683d3135303b6865696768743d3135302f646f672e6a7067)](https://camo.githubusercontent.com/0fe4bc83d8454f32c3b5d6cca0973c12780b4280088c84ab5a26926d7076a6a0/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f7468756d622f6d61782f77696474683d3135303b6865696768743d3135302f646f672e6a7067)

### percentage

[](#percentage)

reduce a image with a certain percentage

ParameterDefaultDescription*percentage*250The percentage to reduce the image with**Examples**
[![Max Thumb](https://camo.githubusercontent.com/5ea85f139484cab93458e3dc653802f6cbad5cca1c476eb5ce359ce16437b864/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f7468756d622f70657263656e746167652f70657263656e746167653d37352f646f672e6a7067)](https://camo.githubusercontent.com/5ea85f139484cab93458e3dc653802f6cbad5cca1c476eb5ce359ce16437b864/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f7468756d622f70657263656e746167652f70657263656e746167653d37352f646f672e6a7067)[![Max Thumb](https://camo.githubusercontent.com/eeeb60875c445edcc6cac7fbe25bc3cc7141a2aad808abdfffc598d4f9a108fa/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f7468756d622f70657263656e746167652f70657263656e746167653d35302f646f672e6a7067)](https://camo.githubusercontent.com/eeeb60875c445edcc6cac7fbe25bc3cc7141a2aad808abdfffc598d4f9a108fa/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f7468756d622f70657263656e746167652f70657263656e746167653d35302f646f672e6a7067)[![Max Thumb](https://camo.githubusercontent.com/5122bcccba0e5dda956c50df5ceff132dfdff56189fc8fb2cbb8bec1fbb5849f/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f7468756d622f70657263656e746167652f70657263656e746167653d32352f646f672e6a7067)](https://camo.githubusercontent.com/5122bcccba0e5dda956c50df5ceff132dfdff56189fc8fb2cbb8bec1fbb5849f/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f7468756d622f70657263656e746167652f70657263656e746167653d32352f646f672e6a7067)

### square

[](#square)

ParameterDefaultDescription*width*250The new width of the image in pixels*height*250The new height of the image in pixels**Examples**
[![Centered Thumb](https://camo.githubusercontent.com/9ccea3a316026bc7b0af5a679141ca978e6468ee5ce74bbf8162e71182ce9c00/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f7468756d622f7371756172652f77696474683d3335302f646f672e6a7067)](https://camo.githubusercontent.com/9ccea3a316026bc7b0af5a679141ca978e6468ee5ce74bbf8162e71182ce9c00/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f7468756d622f7371756172652f77696474683d3335302f646f672e6a7067)[![Centered Thumb](https://camo.githubusercontent.com/f6b39e2a189316837631588175bc33a34be15f591ef4266614ee128fe30f3c70/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f7468756d622f7371756172652f77696474683d3235302f646f672e6a7067)](https://camo.githubusercontent.com/f6b39e2a189316837631588175bc33a34be15f591ef4266614ee128fe30f3c70/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f7468756d622f7371756172652f77696474683d3235302f646f672e6a7067)[![Centered Thumb](https://camo.githubusercontent.com/5f494bbc9dcefb5d7e88add9ca242cd54fb80e547c08108f0c1256467c9e13fb/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f7468756d622f7371756172652f77696474683d3135302f646f672e6a7067)](https://camo.githubusercontent.com/5f494bbc9dcefb5d7e88add9ca242cd54fb80e547c08108f0c1256467c9e13fb/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f7468756d622f7371756172652f77696474683d3135302f646f672e6a7067)

Available Filters
-----------------

[](#available-filters)

### blocks

[](#blocks)

Add random blocks to an image with custom size and color

ParameterDefaultDescription*number*100The number of blocks*size*25The size of the blocks in pixels*color*ffffffThe color of the blocks**Examples**
[![Blocks Filter](https://camo.githubusercontent.com/9eb7080d09c577834d05f41dfb6e7a933aed69eae1ad8193065a8879b55e92a6/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f626c6f636b732f646f672e6a7067)](https://camo.githubusercontent.com/9eb7080d09c577834d05f41dfb6e7a933aed69eae1ad8193065a8879b55e92a6/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f626c6f636b732f646f672e6a7067)[![Blocks Filter](https://camo.githubusercontent.com/934591917e66cc95f79b793368df753c11afee88904970197449d11f9248c72f/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f626c6f636b732f636f6c6f723d3844383934323b73697a653d31302f646f672e6a7067)](https://camo.githubusercontent.com/934591917e66cc95f79b793368df753c11afee88904970197449d11f9248c72f/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f626c6f636b732f636f6c6f723d3844383934323b73697a653d31302f646f672e6a7067)[![Blocks Filter](https://camo.githubusercontent.com/2649bb795258d0e9c95963446dcaf8dd64f55e646edd935d17ccd83405738824/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f626c6f636b732f636f6c6f723d3030303b73697a653d36302f646f672e6a7067)](https://camo.githubusercontent.com/2649bb795258d0e9c95963446dcaf8dd64f55e646edd935d17ccd83405738824/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f626c6f636b732f636f6c6f723d3030303b73697a653d36302f646f672e6a7067)

### brightness

[](#brightness)

Adjust the brightness of the image, either lighter or darker

ParameterDefaultDescription*rate*20The brightness level from -255 to 255, from darker to lighter**Examples**
[![Brightness Filter](https://camo.githubusercontent.com/bca0b4ec9daf4c4b2f974f2775ad02e7a0bbf1b65570f0c222db442b12d327ff/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f6272696768746e6573732f646f672e6a7067)](https://camo.githubusercontent.com/bca0b4ec9daf4c4b2f974f2775ad02e7a0bbf1b65570f0c222db442b12d327ff/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f6272696768746e6573732f646f672e6a7067)[![Brightness Filter Darker](https://camo.githubusercontent.com/f3c40aec85ea41cd63a36c81624813e5ccac60c4fd244245cf0e3f51aefecadc/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f6272696768746e6573732f726174653d2d34302f646f672e6a7067)](https://camo.githubusercontent.com/f3c40aec85ea41cd63a36c81624813e5ccac60c4fd244245cf0e3f51aefecadc/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f6272696768746e6573732f726174653d2d34302f646f672e6a7067)[![Brightness Filter Lighter](https://camo.githubusercontent.com/e590011c301708102d022edda17251d60d62b21fca1ea7fcdbb694161b83bb1e/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f6272696768746e6573732f726174653d3130302f646f672e6a7067)](https://camo.githubusercontent.com/e590011c301708102d022edda17251d60d62b21fca1ea7fcdbb694161b83bb1e/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f6272696768746e6573732f726174653d3130302f646f672e6a7067)

### colorize

[](#colorize)

Blends a fill color with the image

ParameterDefaultDescription*color*ffffffThe color to blend, either in hexadecimal or rgb(a)*opacity*nullThe color opacity from 0 to 127**Examples**
[![Colorize Filter](https://camo.githubusercontent.com/9b46f92154091ac94487a94f6bdeaf0899fa01843c261152ff2c171201212488/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f636f6c6f72697a652f646f672e6a7067)](https://camo.githubusercontent.com/9b46f92154091ac94487a94f6bdeaf0899fa01843c261152ff2c171201212488/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f636f6c6f72697a652f646f672e6a7067)[![Colorize Filter red](https://camo.githubusercontent.com/22938b3e5dcf8a7e07adeb1db997041a902f35844096c1688d288c07163c0220/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f636f6c6f72697a652f636f6c6f723d6666303030303b6f7061636974793d3130302f646f672e6a7067)](https://camo.githubusercontent.com/22938b3e5dcf8a7e07adeb1db997041a902f35844096c1688d288c07163c0220/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f636f6c6f72697a652f636f6c6f723d6666303030303b6f7061636974793d3130302f646f672e6a7067)[![Colorize Filter green](https://camo.githubusercontent.com/f18ac4ce7ab6a19c462a52fede69bf8c8f944a63f070c4ef5b0456919b4e73dc/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f636f6c6f72697a652f636f6c6f723d7267626128302c3235352c302c3430292f646f672e6a7067)](https://camo.githubusercontent.com/f18ac4ce7ab6a19c462a52fede69bf8c8f944a63f070c4ef5b0456919b4e73dc/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f636f6c6f72697a652f636f6c6f723d7267626128302c3235352c302c3430292f646f672e6a7067)

### comic

[](#comic)

Apply a sketchy comic filter to an image

ParameterDefaultDescription*opacity*40The opacity from 0 to 127**Examples**
[![Comic Filter](https://camo.githubusercontent.com/1d3e1a2d4c36148cd5ac6da4cc57d7c89e29cf72aec2ad7cc3162c195ffa93e4/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f636f6d69632f646f672e6a7067)](https://camo.githubusercontent.com/1d3e1a2d4c36148cd5ac6da4cc57d7c89e29cf72aec2ad7cc3162c195ffa93e4/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f636f6d69632f646f672e6a7067)[![Comic Filter](https://camo.githubusercontent.com/a5856485cce266c5e8aab3e9ba51c9dcc1bf4a97f81d8834dfa1456365dcf117/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f636f6d69632f6f7061636974793d34302f646f672e6a7067)](https://camo.githubusercontent.com/a5856485cce266c5e8aab3e9ba51c9dcc1bf4a97f81d8834dfa1456365dcf117/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f636f6d69632f6f7061636974793d34302f646f672e6a7067)[![Comic Filter](https://camo.githubusercontent.com/a988d89d1e7c9d7a1a1138d93672bfd840950dab77dbc8f4980a602c64065f88/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f636f6d69632f6f7061636974793d3130302f646f672e6a7067)](https://camo.githubusercontent.com/a988d89d1e7c9d7a1a1138d93672bfd840950dab77dbc8f4980a602c64065f88/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f636f6d69632f6f7061636974793d3130302f646f672e6a7067)

### contrast

[](#contrast)

Changes the contrast of the image

ParameterDefaultDescription*rate*5The opacity from -100 to 100, from minimal contrast to high constrast**Examples**
[![Contrast Filter](https://camo.githubusercontent.com/e11ac09a999f996fb293ab2babf5120500da273131662eecf930c9066437a2ac/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f636f6e74726173742f646f672e6a7067)](https://camo.githubusercontent.com/e11ac09a999f996fb293ab2babf5120500da273131662eecf930c9066437a2ac/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f636f6e74726173742f646f672e6a7067)[![Contrast Filter](https://camo.githubusercontent.com/bc3875f4933dc13e2d7cf3a5c799027f12d31e7f16951d8e9628eaa2b4e9f7f3/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f636f6e74726173742f726174653d34302f646f672e6a7067)](https://camo.githubusercontent.com/bc3875f4933dc13e2d7cf3a5c799027f12d31e7f16951d8e9628eaa2b4e9f7f3/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f636f6e74726173742f726174653d34302f646f672e6a7067)[![Contrast Filter](https://camo.githubusercontent.com/2d8c7c13c03b17aee246691971641bd41763dc062f0fe65a8a6c59b0e5c1b3d4/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f636f6e74726173742f726174653d2d31302f646f672e6a7067)](https://camo.githubusercontent.com/2d8c7c13c03b17aee246691971641bd41763dc062f0fe65a8a6c59b0e5c1b3d4/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f636f6e74726173742f726174653d2d31302f646f672e6a7067)

\###darken Adjust the brightness of the image, either darker or lighter

ParameterDefaultDescription*rate*20The brightness level from -255 to 255, from lighter to darker**Examples**
[![Darken Filter](https://camo.githubusercontent.com/7c35061cecc0e9b3a369707b10a8becc1a36e4c4b5207373dfbbd289e0b10a60/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f6461726b656e2f646f672e6a7067)](https://camo.githubusercontent.com/7c35061cecc0e9b3a369707b10a8becc1a36e4c4b5207373dfbbd289e0b10a60/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f6461726b656e2f646f672e6a7067)[![Darken Filter Lighter](https://camo.githubusercontent.com/e916bd48a610eb88611acc92e838ea7f363fd6e8b03b34b4c62086378ef4e7dd/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f6461726b656e2f726174653d2d34302f646f672e6a7067)](https://camo.githubusercontent.com/e916bd48a610eb88611acc92e838ea7f363fd6e8b03b34b4c62086378ef4e7dd/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f6461726b656e2f726174653d2d34302f646f672e6a7067)[![Darken Filter Darker](https://camo.githubusercontent.com/12acbdd75dd0d0d55a1c2f2741d441097ea365a0c40a794dd7677cf4a9ca093c/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f6461726b656e2f726174653d3130302f646f672e6a7067)](https://camo.githubusercontent.com/12acbdd75dd0d0d55a1c2f2741d441097ea365a0c40a794dd7677cf4a9ca093c/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f6461726b656e2f726174653d3130302f646f672e6a7067)

\###dodge Dodge an image, resulting in a darker image

ParameterDefaultDescription*rate*75The dodge level between 0 and 100**Examples**
[![Dodge Filter](https://camo.githubusercontent.com/1bfa9993fb4d082d900c75890230994543b7098c0d4cc8ac30db64e22b031f87/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f646f6467652f646f672e6a7067)](https://camo.githubusercontent.com/1bfa9993fb4d082d900c75890230994543b7098c0d4cc8ac30db64e22b031f87/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f646f6467652f646f672e6a7067)[![Dodge Filter Lighter](https://camo.githubusercontent.com/0036bb43a241c95b7b15b10641c6cc989953e50fdf070aa49b542fafe5d76ff5/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f646f6467652f726174653d34302f646f672e6a7067)](https://camo.githubusercontent.com/0036bb43a241c95b7b15b10641c6cc989953e50fdf070aa49b542fafe5d76ff5/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f646f6467652f726174653d34302f646f672e6a7067)[![Dodge Filter Darker](https://camo.githubusercontent.com/cc340d47db07dec0576c3492229888cb6b8cf92dbce985f18860a2cf58cb3c63/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f646f6467652f726174653d31302f646f672e6a7067)](https://camo.githubusercontent.com/cc340d47db07dec0576c3492229888cb6b8cf92dbce985f18860a2cf58cb3c63/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f646f6467652f726174653d31302f646f672e6a7067)

\###duotone Duotone filter. Enhances Red, Green or Blue or a combination

ParameterDefaultDescription*red*0The amount of red to add max = 255*green*0The amount of green to add max = 255*blue*0The amount of blue to add max = 255**Examples**
[![Dodge Filter](https://camo.githubusercontent.com/d948a804145994a36fb24e4b622b56119e55a861b4b5d1dcdbf1ee08450aae46/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f64756f746f6e652f646f672e6a7067)](https://camo.githubusercontent.com/d948a804145994a36fb24e4b622b56119e55a861b4b5d1dcdbf1ee08450aae46/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f64756f746f6e652f646f672e6a7067)[![Dodge Filter Lighter](https://camo.githubusercontent.com/a8b8d861bd093b160e513519cfdcf83b0631c362d0ab4685710bd77cb84ca2a3/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f64756f746f6e652f7265643d34302f646f672e6a7067)](https://camo.githubusercontent.com/a8b8d861bd093b160e513519cfdcf83b0631c362d0ab4685710bd77cb84ca2a3/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f64756f746f6e652f7265643d34302f646f672e6a7067)[![Dodge Filter Darker](https://camo.githubusercontent.com/8b915fc9ac90a61983962d853c801c0d28f92be0e15735ef0233dadcc224e0b0/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f64756f746f6e652f677265656e3d31303b626c75653d39302f646f672e6a7067)](https://camo.githubusercontent.com/8b915fc9ac90a61983962d853c801c0d28f92be0e15735ef0233dadcc224e0b0/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f64756f746f6e652f677265656e3d31303b626c75653d39302f646f672e6a7067)

\###edgedetect Uses edge detection to highlight the edges in the image

**Examples**
[![Edge detect Filter](https://camo.githubusercontent.com/323922282f18305ae43a01f7ff76cab08ebd0182b9a2acdcb70ff6c060be14e0/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f656467656465746563742f646f672e6a7067)](https://camo.githubusercontent.com/323922282f18305ae43a01f7ff76cab08ebd0182b9a2acdcb70ff6c060be14e0/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f656467656465746563742f646f672e6a7067)

\###emboss Embosses the image

**Examples**
[![Edge detect Filter](https://camo.githubusercontent.com/4b56e2def6097a9ec364706a9a4033b2f08e9df6b6d8cce078be10c0f5115a76/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f656d626f73732f646f672e6a7067)](https://camo.githubusercontent.com/4b56e2def6097a9ec364706a9a4033b2f08e9df6b6d8cce078be10c0f5115a76/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f656d626f73732f646f672e6a7067)

\###findedges Find the edges in an image without color loss

**Examples**
[![Edge detect Filter](https://camo.githubusercontent.com/02775d14a4ca5bc88aeea323035389bccbe0225f02af52e6eb4b65b1a8cdda84/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f66696e6465646765732f646f672e6a7067)](https://camo.githubusercontent.com/02775d14a4ca5bc88aeea323035389bccbe0225f02af52e6eb4b65b1a8cdda84/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f66696e6465646765732f646f672e6a7067)

\###flip Flips an image

ParameterDefaultDescription*mode*bothDirection to fip: vertical, horizontal or both**Examples**
[![Flip Filter](https://camo.githubusercontent.com/e962b5a3acf375202ec8355654a95b2a2aae146815cd9dea05a7c7e874c5f689/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f666c69702f6d6f64653d626f74682f646f672e6a7067)](https://camo.githubusercontent.com/e962b5a3acf375202ec8355654a95b2a2aae146815cd9dea05a7c7e874c5f689/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f666c69702f6d6f64653d626f74682f646f672e6a7067)[![Flip Filter Vertical](https://camo.githubusercontent.com/319c60c1244818e3cbd6776362ad7648efe98d96f26f892497761701dcc7c0ac/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f666c69702f6d6f64653d766572746963616c2f646f672e6a7067)](https://camo.githubusercontent.com/319c60c1244818e3cbd6776362ad7648efe98d96f26f892497761701dcc7c0ac/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f666c69702f6d6f64653d766572746963616c2f646f672e6a7067)[![Flip Filter Horizontal](https://camo.githubusercontent.com/72205b1fa322718972aca5b3ec0cf1e33acf807607a73e7775761b8d0881217e/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f666c69702f6d6f64653d686f72697a6f6e74616c2f646f672e6a7067)](https://camo.githubusercontent.com/72205b1fa322718972aca5b3ec0cf1e33acf807607a73e7775761b8d0881217e/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f666c69702f6d6f64653d686f72697a6f6e74616c2f646f672e6a7067)

\###gammacorrection Applies gamma correction

ParameterDefaultDescription*input*1.0Input*output*1.537Output**Examples**
[![Gamma Correction Filter](https://camo.githubusercontent.com/3c3ea01c3cdf2aebd6b62a2af20247747f8003c708ea6b9ad9b831454ced5964/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f67616d6d61636f7272656374696f6e2f646f672e6a7067)](https://camo.githubusercontent.com/3c3ea01c3cdf2aebd6b62a2af20247747f8003c708ea6b9ad9b831454ced5964/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f67616d6d61636f7272656374696f6e2f646f672e6a7067)[![Gamma Correction Vertical](https://camo.githubusercontent.com/ad6ba6476297cf82ef692b591784a5f91bc80e816169796b2e3b4269e22842e9/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f67616d6d61636f7272656374696f6e2f696e7075743d302e353b6f75747075743d312f646f672e6a7067)](https://camo.githubusercontent.com/ad6ba6476297cf82ef692b591784a5f91bc80e816169796b2e3b4269e22842e9/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f67616d6d61636f7272656374696f6e2f696e7075743d302e353b6f75747075743d312f646f672e6a7067)[![FlipGamma Correction Horizontal](https://camo.githubusercontent.com/f610ab9f3a374e258004f6fd94399196ddca2cc00ab1b8d5b8f1161626915840/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f67616d6d61636f7272656374696f6e2f696e7075743d323b6f75747075743d312f646f672e6a7067)](https://camo.githubusercontent.com/f610ab9f3a374e258004f6fd94399196ddca2cc00ab1b8d5b8f1161626915840/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f67616d6d61636f7272656374696f6e2f696e7075743d323b6f75747075743d312f646f672e6a7067)

\###gaussianblur Blurs the image using the Gaussian method.

**Examples**
[![Gaussian Blur Filter](https://camo.githubusercontent.com/db6aa0a9cd7458514227d736cdb84ee3c9ef34cede6b3169e6fbb171855440f5/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f676175737369616e626c75722f646f672e6a7067)](https://camo.githubusercontent.com/db6aa0a9cd7458514227d736cdb84ee3c9ef34cede6b3169e6fbb171855440f5/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f676175737369616e626c75722f646f672e6a7067)

\###grayscale Converts the colors to grayscale

**Examples**
[![Gaussian Blur Filter](https://camo.githubusercontent.com/03372e3f2bb8bc2bfaec8f760d4c71424085eb83691d2d251a8e7bd517406193/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f677261797363616c652f646f672e6a7067)](https://camo.githubusercontent.com/03372e3f2bb8bc2bfaec8f760d4c71424085eb83691d2d251a8e7bd517406193/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f677261797363616c652f646f672e6a7067)

\###huerotate Rotete the hue of the image

ParameterDefaultDescription*rotate*90degrees to rotate**Examples**
[![Hue Rotate Filter](https://camo.githubusercontent.com/54991aea4356adc8d454f166b1b791d4a6e7f4f850468f50dea20c2c8a7ca066/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f687565726f746174652f646f672e6a7067)](https://camo.githubusercontent.com/54991aea4356adc8d454f166b1b791d4a6e7f4f850468f50dea20c2c8a7ca066/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f687565726f746174652f646f672e6a7067)[![Hue Rotate Filter](https://camo.githubusercontent.com/40c8b88a8a0df4a04262870cd342f0d30cabc578f8d6aef1c9a0b6727ce7193f/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f687565726f746174652f726f746174653d32302f646f672e6a7067)](https://camo.githubusercontent.com/40c8b88a8a0df4a04262870cd342f0d30cabc578f8d6aef1c9a0b6727ce7193f/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f687565726f746174652f726f746174653d32302f646f672e6a7067)[![Hue Rotate Filter](https://camo.githubusercontent.com/6e5cb63715d61fcc4e09a9fd7b288d70ca23dba6732c8054295d011985d22b7b/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f687565726f746174652f726f746174653d3237302f646f672e6a7067)](https://camo.githubusercontent.com/6e5cb63715d61fcc4e09a9fd7b288d70ca23dba6732c8054295d011985d22b7b/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f687565726f746174652f726f746174653d3237302f646f672e6a7067)

\###meanremove Uses mean removal to achieve a "sketchy" effect

**Examples**
[![Gaussian Blur Filter](https://camo.githubusercontent.com/585e6e5da8eb19de42add3a235b1ab457070ed614b27e29cd3b32d02348f9495/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f6d65616e72656d6f76652f646f672e6a7067)](https://camo.githubusercontent.com/585e6e5da8eb19de42add3a235b1ab457070ed614b27e29cd3b32d02348f9495/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f6d65616e72656d6f76652f646f672e6a7067)

\###motionblur Motion blurs the image

**Examples**
[![Gaussian Blur Filter](https://camo.githubusercontent.com/4d08cfba01d4eceddd7296fea309928e42db58ebb1d361a614957420bd0b4f20/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f6d6f74696f6e626c75722f646f672e6a7067)](https://camo.githubusercontent.com/4d08cfba01d4eceddd7296fea309928e42db58ebb1d361a614957420bd0b4f20/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f6d6f74696f6e626c75722f646f672e6a7067)

\###negative Create a negative of an image

**Examples**
[![Gaussian Blur Filter](https://camo.githubusercontent.com/1c46367b17327ed518c53ead6ef6e5f778b64229405d7dfaddf0db70f7b8f0d3/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f6e656761746976652f646f672e6a7067)](https://camo.githubusercontent.com/1c46367b17327ed518c53ead6ef6e5f778b64229405d7dfaddf0db70f7b8f0d3/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f6e656761746976652f646f672e6a7067)

\###noise add noise to the image

ParameterDefaultDescription*rate*20The amount of noise to apply**Examples**
[![Noise Filter](https://camo.githubusercontent.com/45dbc943c42468b58c97c58a4fc60c381a53ea7f091aef5105cd1cb782232f68/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f6e6f6973652f646f672e6a7067)](https://camo.githubusercontent.com/45dbc943c42468b58c97c58a4fc60c381a53ea7f091aef5105cd1cb782232f68/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f6e6f6973652f646f672e6a7067)[![Noise Filter](https://camo.githubusercontent.com/fc337d977b2b6078a3e37deef0224cf1983d21c216d433f5787c968af1313547/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f6e6f6973652f726174653d34302f646f672e6a7067)](https://camo.githubusercontent.com/fc337d977b2b6078a3e37deef0224cf1983d21c216d433f5787c968af1313547/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f6e6f6973652f726174653d34302f646f672e6a7067)[![Noise Filter](https://camo.githubusercontent.com/5dda3fb3598a1f5ef918df80aa845de3958e164747c57e69a4547636644d1ddc/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f6e6f6973652f726174653d38302f646f672e6a7067)](https://camo.githubusercontent.com/5dda3fb3598a1f5ef918df80aa845de3958e164747c57e69a4547636644d1ddc/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f6e6f6973652f726174653d38302f646f672e6a7067)

\###oldcardboard Image filter to give the image an old cardboard look

**Examples**
[![Gaussian Blur Filter](https://camo.githubusercontent.com/413406a51dea3253364dbf7d83686b858caf9842b9d4cedea05358852ac348e0/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f6f6c6463617264626f6172642f646f672e6a7067)](https://camo.githubusercontent.com/413406a51dea3253364dbf7d83686b858caf9842b9d4cedea05358852ac348e0/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f6f6c6463617264626f6172642f646f672e6a7067)

\###opacity Sets the opacity of an image

ParameterDefaultDescription*opacity*80A value between 0 and 127. 0 indicates completely opaque while 127 indicates completely transparent.**Examples**
[![Opacity Filter](https://camo.githubusercontent.com/3103e42fa076f51b24d76eab4e6fac3285a89f99770fc8d9d5de4db5ddfce6e8/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f6f7061636974792f646f672e6a7067)](https://camo.githubusercontent.com/3103e42fa076f51b24d76eab4e6fac3285a89f99770fc8d9d5de4db5ddfce6e8/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f6f7061636974792f646f672e6a7067)[![Opacity Filter](https://camo.githubusercontent.com/fffc5e9848539313011620b0edb501c4736aab6b1b696d5346fce3b1b9dd280d/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f6f7061636974792f6f7061636974793d34302f646f672e6a7067)](https://camo.githubusercontent.com/fffc5e9848539313011620b0edb501c4736aab6b1b696d5346fce3b1b9dd280d/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f6f7061636974792f6f7061636974793d34302f646f672e6a7067)[![Opacity Filter](https://camo.githubusercontent.com/86f330c6a207d01dd355c1d401b7d37ee0b43a2e11ba641e2a76a0a8c6312874/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f6f7061636974792f6f7061636974793d3130302f646f672e6a7067)](https://camo.githubusercontent.com/86f330c6a207d01dd355c1d401b7d37ee0b43a2e11ba641e2a76a0a8c6312874/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f6f7061636974792f6f7061636974793d3130302f646f672e6a7067)

\###pixelate Pixelate an image

ParameterDefaultDescription*rate*20the blocksize in pixels**Examples**
[![Pixelate Filter](https://camo.githubusercontent.com/bfb84c7e4c4f62db54539c7acfbc0199907f7c1826a9164a7bb8c0aa1065ba2a/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f706978656c6174652f726174653d352f646f672e6a7067)](https://camo.githubusercontent.com/bfb84c7e4c4f62db54539c7acfbc0199907f7c1826a9164a7bb8c0aa1065ba2a/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f706978656c6174652f726174653d352f646f672e6a7067)[![Pixelate Filter](https://camo.githubusercontent.com/0bfc488bf44a1ca671e3783a0d3f43cb7f602da381400c2a78f2259fb4214fdb/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f706978656c6174652f646f672e6a7067)](https://camo.githubusercontent.com/0bfc488bf44a1ca671e3783a0d3f43cb7f602da381400c2a78f2259fb4214fdb/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f706978656c6174652f646f672e6a7067)[![Pixelate Filter](https://camo.githubusercontent.com/aaf626bed712860ddaff668cdfcfb69de1ba1dff05578821f8e241237fe73b97/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f706978656c6174652f726174653d36332f646f672e6a7067)](https://camo.githubusercontent.com/aaf626bed712860ddaff668cdfcfb69de1ba1dff05578821f8e241237fe73b97/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f706978656c6174652f726174653d36332f646f672e6a7067)

\###rotate Rotate an image over an angle

ParameterDefaultDescription*degrees*90The degrees to rotate the image*color*nullThe background color to apply**Examples**
[![Rotate Filter](https://camo.githubusercontent.com/38f1d361f6028dac3cc619ed155087bc527ddd3a354cc7ce622adc3228a085c3/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f726f746174652f2f646f672e6a7067)](https://camo.githubusercontent.com/38f1d361f6028dac3cc619ed155087bc527ddd3a354cc7ce622adc3228a085c3/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f726f746174652f2f646f672e6a7067)[![Rotate Filter](https://camo.githubusercontent.com/198f797a59ced9a907e6dc9b92578004d02350a3da079480f8355cf33239e5f4/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f726f746174652f646567726565733d3138302f646f672e6a7067)](https://camo.githubusercontent.com/198f797a59ced9a907e6dc9b92578004d02350a3da079480f8355cf33239e5f4/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f726f746174652f646567726565733d3138302f646f672e6a7067)[![Rotate Filter](https://camo.githubusercontent.com/89b00a40895540f4729767cc1145acdb6aa277541277a4c722b0afd5709fc7c8/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f726f746174652f2f646567726565733d34353b636f6c6f723d6630302f646f672e6a7067)](https://camo.githubusercontent.com/89b00a40895540f4729767cc1145acdb6aa277541277a4c722b0afd5709fc7c8/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f726f746174652f2f646567726565733d34353b636f6c6f723d6630302f646f672e6a7067)

\###scatter Scatter pixels around in a random way

ParameterDefaultDescription*rate*5the scatter size in pixels**Examples**
[![Scatter Filter](https://camo.githubusercontent.com/9ff9ae41e338231311eee3b08977a46669808ee2af10d766dff05544e2864aab/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f736361747465722f646f672e6a7067)](https://camo.githubusercontent.com/9ff9ae41e338231311eee3b08977a46669808ee2af10d766dff05544e2864aab/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f736361747465722f646f672e6a7067)[![Scatter Filter](https://camo.githubusercontent.com/3d353999452125943c2a798a998c84428d79337dac3e60d3abb7e986284f050b/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f736361747465722f726174653d31302f646f672e6a7067)](https://camo.githubusercontent.com/3d353999452125943c2a798a998c84428d79337dac3e60d3abb7e986284f050b/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f736361747465722f726174653d31302f646f672e6a7067)[![Scatter Filter](https://camo.githubusercontent.com/17791ec1da48f2960a9be76764d5a871c2b2bb9006bad99e3020cedeea6a0ed7/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f736361747465722f726174653d32302f646f672e6a7067)](https://camo.githubusercontent.com/17791ec1da48f2960a9be76764d5a871c2b2bb9006bad99e3020cedeea6a0ed7/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f736361747465722f726174653d32302f646f672e6a7067)

\###selectiveblur Image filter Selective Blur

**Examples**
[![Selective blur Filter](https://camo.githubusercontent.com/b9c7206cbf12a867e4521d3dd944813c5461ded967db1e60823e687b4d654eee/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f73656c656374697665626c75722f646f672e6a7067)](https://camo.githubusercontent.com/b9c7206cbf12a867e4521d3dd944813c5461ded967db1e60823e687b4d654eee/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f73656c656374697665626c75722f646f672e6a7067)

\###sepia Apply sepia to the image

ParameterDefaultDescription*rate*15the darken rate**Examples**
[![Sepia Filter](https://camo.githubusercontent.com/8134d7a0db685f236652662d0794432a27a7fdd6e68ac34699d63082dfbbff23/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f73657069612f646f672e6a7067)](https://camo.githubusercontent.com/8134d7a0db685f236652662d0794432a27a7fdd6e68ac34699d63082dfbbff23/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f73657069612f646f672e6a7067)[![Sepia Filter](https://camo.githubusercontent.com/a804d451d9d78a35c2b3e31e2e46efa50833c895e6141079a39c990cc6679282/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f73657069612f726174653d33302f646f672e6a7067)](https://camo.githubusercontent.com/a804d451d9d78a35c2b3e31e2e46efa50833c895e6141079a39c990cc6679282/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f73657069612f726174653d33302f646f672e6a7067)[![Sepia Filter](https://camo.githubusercontent.com/bda14e02556145dbb935dbdb09e70ec771fd50fa38a65e653695a7f6dd831e3c/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f73657069612f726174653d36302f646f672e6a7067)](https://camo.githubusercontent.com/bda14e02556145dbb935dbdb09e70ec771fd50fa38a65e653695a7f6dd831e3c/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f73657069612f726174653d36302f646f672e6a7067)

\###semigrayscale Applies grayscale to an image, optionally add a grayscale percentage

ParameterDefaultDescription*rate*75The grayscale rate**Examples**
[![Sepia Filter](https://camo.githubusercontent.com/60d64b7e9109d07fec14fec52a06337784d843ea51bbb6cb7c452011659e9b70/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f73656d69677261797363616c652f646f672e6a7067)](https://camo.githubusercontent.com/60d64b7e9109d07fec14fec52a06337784d843ea51bbb6cb7c452011659e9b70/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f73656d69677261797363616c652f646f672e6a7067)[![Sepia Filter](https://camo.githubusercontent.com/993f91b0a5761268e67bc7025fc4c12c6dff3f40962471472fa1857435e13bef/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f73656d69677261797363616c652f726174653d32302f646f672e6a7067)](https://camo.githubusercontent.com/993f91b0a5761268e67bc7025fc4c12c6dff3f40962471472fa1857435e13bef/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f73656d69677261797363616c652f726174653d32302f646f672e6a7067)[![Sepia Filter](https://camo.githubusercontent.com/d397208bdb71a5b7f3d90add61d9dae8d0f6a713e0283ee26296438d8af06381/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f73656d69677261797363616c652f726174653d39302f646f672e6a7067)](https://camo.githubusercontent.com/d397208bdb71a5b7f3d90add61d9dae8d0f6a713e0283ee26296438d8af06381/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f73656d69677261797363616c652f726174653d39302f646f672e6a7067)

\###sepiafast Apply sepia to the image (fast)

**Examples**
[![Sepia fast Filter](https://camo.githubusercontent.com/07a1b16fb5adc8d1a306de615f0cf4d90433b382b997eae3c6135ab61fcd0916/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f7365706961666173742f646f672e6a7067)](https://camo.githubusercontent.com/07a1b16fb5adc8d1a306de615f0cf4d90433b382b997eae3c6135ab61fcd0916/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f7365706961666173742f646f672e6a7067)[![Sepia fast Filter](https://camo.githubusercontent.com/3b57e71abdd9eb679b22c1367837b7053b05c1ca5c3ff20771aab9730653f567/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f7365706961666173742f726174653d33302f646f672e6a7067)](https://camo.githubusercontent.com/3b57e71abdd9eb679b22c1367837b7053b05c1ca5c3ff20771aab9730653f567/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f7365706961666173742f726174653d33302f646f672e6a7067)[![Sepia fast Filter](https://camo.githubusercontent.com/0796a6b3effa80f35728abade7b784ba9eceeee0d92fcddc703ef54d8eb496a0/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f7365706961666173742f726174653d36302f646f672e6a7067)](https://camo.githubusercontent.com/0796a6b3effa80f35728abade7b784ba9eceeee0d92fcddc703ef54d8eb496a0/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f7365706961666173742f726174653d36302f646f672e6a7067)

\###sharpen Sharpens the image

**Examples**
[![Sepia fast Filter](https://camo.githubusercontent.com/0ef19eaa4ede68d71debffd8b757ed44a18e835b0531f80167b0190ddbffaa7d/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f7368617270656e2f646f672e6a7067)](https://camo.githubusercontent.com/0ef19eaa4ede68d71debffd8b757ed44a18e835b0531f80167b0190ddbffaa7d/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f7368617270656e2f646f672e6a7067)

\###smooth Makes the image smoother.

ParameterDefaultDescription*rate*5the darken rate**Examples**
[![Smooth Filter](https://camo.githubusercontent.com/bd539413a93d106fa9c51cb325c3b8be9f72efe3f6a69a772917ebebd2458e72/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f736d6f6f74682f646f672e6a7067)](https://camo.githubusercontent.com/bd539413a93d106fa9c51cb325c3b8be9f72efe3f6a69a772917ebebd2458e72/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f736d6f6f74682f646f672e6a7067)[![Smooth Filter](https://camo.githubusercontent.com/fcfed30d13eb832f8c02048ece560abe783904047f292f0af94ca865a577e1a3/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f736d6f6f74682f726174653d31352f646f672e6a7067)](https://camo.githubusercontent.com/fcfed30d13eb832f8c02048ece560abe783904047f292f0af94ca865a577e1a3/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f736d6f6f74682f726174653d31352f646f672e6a7067)[![Smooth Filter](https://camo.githubusercontent.com/45a05981b69b1e88b4cfdc4da0b1f1e2f20668ec506a827774fd05ef7ed6bd47/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f736d6f6f74682f726174653d33302f646f672e6a7067)](https://camo.githubusercontent.com/45a05981b69b1e88b4cfdc4da0b1f1e2f20668ec506a827774fd05ef7ed6bd47/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f736d6f6f74682f726174653d33302f646f672e6a7067)

\###sobel Sobel edge detect (extremely slow...)

**Examples**
[![Sobel Edge Detect Filter](https://camo.githubusercontent.com/84085434995dc71729dfe8a6dff5606c95ba6ae9b2743361f8404278c745b507/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f736f62656c2f646f672e6a7067)](https://camo.githubusercontent.com/84085434995dc71729dfe8a6dff5606c95ba6ae9b2743361f8404278c745b507/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f736f62656c2f646f672e6a7067)

\###sobeledge Sobel edge enhance

**Examples**
[![Sobel Edge Detect Filter](https://camo.githubusercontent.com/141a859fcf0973203c950eb3388d7f3d879b410f16db9b21798c6fcaeb851bc9/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f736f62656c656467652f646f672e6a7067)](https://camo.githubusercontent.com/141a859fcf0973203c950eb3388d7f3d879b410f16db9b21798c6fcaeb851bc9/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f736f62656c656467652f646f672e6a7067)

\###truecolor Makes the image smoother.

ParameterDefaultDescription*primary*ffffffthe primary color*secundary*000000the secundary color**Examples**
[![Smooth Filter](https://camo.githubusercontent.com/57e30dea034d566d937d14a53f2f1647d9742b3721265fe56a5f70b9243938e6/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f74727565636f6c6f722f646f672e6a7067)](https://camo.githubusercontent.com/57e30dea034d566d937d14a53f2f1647d9742b3721265fe56a5f70b9243938e6/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f74727565636f6c6f722f646f672e6a7067)[![Smooth Filter](https://camo.githubusercontent.com/162d318c7bbad630fb3362b99de184e69ddf5132ebe0b7bf070ed6c06e48b3b1/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f74727565636f6c6f722f7072696d6172793d4237313231443b736563756e646172793d3537373444422f646f672e6a7067)](https://camo.githubusercontent.com/162d318c7bbad630fb3362b99de184e69ddf5132ebe0b7bf070ed6c06e48b3b1/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f74727565636f6c6f722f7072696d6172793d4237313231443b736563756e646172793d3537373444422f646f672e6a7067)[![Smooth Filter](https://camo.githubusercontent.com/f955ae8ab7b753dd2452ee67d35ca00edcbbde4a84ff7d905749d47be3d2cc45/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f74727565636f6c6f722f7072696d6172793d4331433143313b736563756e646172793d3434433442442f646f672e6a7067)](https://camo.githubusercontent.com/f955ae8ab7b753dd2452ee67d35ca00edcbbde4a84ff7d905749d47be3d2cc45/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f74727565636f6c6f722f7072696d6172793d4331433143313b736563756e646172793d3434433442442f646f672e6a7067)

\###vignette Applies a darker mask around the edges of the image

**Examples**
[![Smooth Filter](https://camo.githubusercontent.com/d94edcccc460c40d39afd1f16ef1051cc2e94ca77f1ac3c1be70414fa7629cbb/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f7669676e657474652f646f672e6a7067)](https://camo.githubusercontent.com/d94edcccc460c40d39afd1f16ef1051cc2e94ca77f1ac3c1be70414fa7629cbb/687474703a2f2f656c67657276616e626f7874656c2e6e6c2f696d61676570726f78792f696d672f7669676e657474652f646f672e6a7067)

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 99.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~3 days

Total

3

Last Release

3912d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3b50d86ed140066cebacd62dbd27ed1f685c41c8bc7ecc18fe486a06044cd6ed?d=identicon)[elgervb](/maintainers/elgervb)

---

Top Contributors

[![elgervb](https://avatars.githubusercontent.com/u/356204?v=4)](https://github.com/elgervb "elgervb (178 commits)")[![bitdeli-chef](https://avatars.githubusercontent.com/u/3092978?v=4)](https://github.com/bitdeli-chef "bitdeli-chef (1 commits)")

---

Tags

gdmanipulationimagesimage-rotateimage filtersimage-watermarkcolor utilsimage overlaysimage reflectionimage thumbnail

### Embed Badge

![Health badge](/badges/elgervb-imagemanipulation/health.svg)

```
[![Health](https://phpackages.com/badges/elgervb-imagemanipulation/health.svg)](https://phpackages.com/packages/elgervb-imagemanipulation)
```

###  Alternatives

[league/glide

Wonderfully easy on-demand image manipulation library with an HTTP based API.

2.6k51.2M116](/packages/league-glide)[rosell-dk/webp-convert

Convert JPEG &amp; PNG to WebP with PHP

6038.1M54](/packages/rosell-dk-webp-convert)[jbzoo/image

A PHP class that simplifies working with images

171126.9k3](/packages/jbzoo-image)[admad/cakephp-glide

CakePHP plugin for using Glide image manipulation library.

34160.7k1](/packages/admad-cakephp-glide)[andrewgjohnson/imagettftextblur

imagettftextblur is a drop in replacement for imagettftext with added parameters to add blur, glow and shadow effects to your PHP GD images

27198.4k1](/packages/andrewgjohnson-imagettftextblur)[zenstruck/image

Image file wrapper with generic transformation support.

3129.2k1](/packages/zenstruck-image)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
