Download the PHP package elgervb/imagemanipulation without Composer

On this page you can find all versions of the php package elgervb/imagemanipulation. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package imagemanipulation

IMAGEMANIPULATION

Build Status Latest Stable Version
Fork me on GitHub: https://github.com/elgervb/imagemanipulation 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:

Installation

With composer.json:

Requirements

PHP version >= 5.3 with GD library

FUNCTIONALITY

Filters

Lots of image filters. All of them listed below:

Overlay

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

Reflection

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

Image repeater

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

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

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

Watermarking

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

Examples

Thumbnails

You can create thumbnails in several ways

centered

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

Parameter Default Description
width 250 The new width of the image in pixels
height 250 The new height of the image in pixels

Examples
Centered Thumb Centered Thumb Centered Thumb

max

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

Parameter Default Description
width 250 The max width of the image in pixels
height 250 The max height of the image in pixels

Examples
Max Thumb Max Thumb Max Thumb

percentage

reduce a image with a certain percentage

Parameter Default Description
percentage 250 The percentage to reduce the image with

Examples
Max Thumb Max Thumb Max Thumb

square

Parameter Default Description
width 250 The new width of the image in pixels
height 250 The new height of the image in pixels

Examples
Centered Thumb Centered Thumb Centered Thumb

Available Filters

blocks

Add random blocks to an image with custom size and color

Parameter Default Description
number 100 The number of blocks
size 25 The size of the blocks in pixels
color ffffff The color of the blocks

Examples
Blocks Filter Blocks Filter Blocks Filter

brightness

Adjust the brightness of the image, either lighter or darker

Parameter Default Description
rate 20 The brightness level from -255 to 255, from darker to lighter

Examples
Brightness Filter Brightness Filter Darker Brightness Filter Lighter

colorize

Blends a fill color with the image

Parameter Default Description
color ffffff The color to blend, either in hexadecimal or rgb(a)
opacity null The color opacity from 0 to 127

Examples
Colorize Filter Colorize Filter red Colorize Filter green

comic

Apply a sketchy comic filter to an image

Parameter Default Description
opacity 40 The opacity from 0 to 127

Examples
Comic Filter Comic Filter Comic Filter

contrast

Changes the contrast of the image

Parameter Default Description
rate 5 The opacity from -100 to 100, from minimal contrast to high constrast

Examples
Contrast Filter Contrast Filter Contrast Filter

darken

Adjust the brightness of the image, either darker or lighter

Parameter Default Description
rate 20 The brightness level from -255 to 255, from lighter to darker

Examples
Darken Filter Darken Filter Lighter Darken Filter Darker

dodge

Dodge an image, resulting in a darker image

Parameter Default Description
rate 75 The dodge level between 0 and 100

Examples
Dodge Filter Dodge Filter Lighter Dodge Filter Darker

duotone

Duotone filter. Enhances Red, Green or Blue or a combination

Parameter Default Description
red 0 The amount of red to add max = 255
green 0 The amount of green to add max = 255
blue 0 The amount of blue to add max = 255

Examples
Dodge Filter Dodge Filter Lighter Dodge Filter Darker

edgedetect

Uses edge detection to highlight the edges in the image

Examples
Edge detect Filter

emboss

Embosses the image

Examples
Edge detect Filter

findedges

Find the edges in an image without color loss

Examples
Edge detect Filter

flip

Flips an image

Parameter Default Description
mode both Direction to fip: vertical, horizontal or both

Examples
Flip Filter Flip Filter Vertical Flip Filter Horizontal

gammacorrection

Applies gamma correction

Parameter Default Description
input 1.0 Input
output 1.537 Output

Examples
Gamma Correction Filter Gamma Correction Vertical FlipGamma Correction Horizontal

gaussianblur

Blurs the image using the Gaussian method.

Examples
Gaussian Blur Filter

grayscale

Converts the colors to grayscale

Examples
Gaussian Blur Filter

huerotate

Rotete the hue of the image

Parameter Default Description
rotate 90 degrees to rotate

Examples
Hue Rotate Filter Hue Rotate Filter Hue Rotate Filter

meanremove

Uses mean removal to achieve a "sketchy" effect

Examples
Gaussian Blur Filter

motionblur

Motion blurs the image

Examples
Gaussian Blur Filter

negative

Create a negative of an image

Examples
Gaussian Blur Filter

noise

add noise to the image

Parameter Default Description
rate 20 The amount of noise to apply

Examples
Noise Filter Noise Filter Noise Filter

oldcardboard

Image filter to give the image an old cardboard look

Examples
Gaussian Blur Filter

opacity

Sets the opacity of an image

Parameter Default Description
opacity 80 A value between 0 and 127. 0 indicates completely opaque while 127 indicates completely transparent.

Examples
Opacity Filter Opacity Filter Opacity Filter

pixelate

Pixelate an image

Parameter Default Description
rate 20 the blocksize in pixels

Examples
Pixelate Filter Pixelate Filter Pixelate Filter

rotate

Rotate an image over an angle

Parameter Default Description
degrees 90 The degrees to rotate the image
color null The background color to apply

Examples
Rotate Filter Rotate Filter Rotate Filter

scatter

Scatter pixels around in a random way

Parameter Default Description
rate 5 the scatter size in pixels

Examples
Scatter Filter Scatter Filter Scatter Filter

selectiveblur

Image filter Selective Blur

Examples
Selective blur Filter

sepia

Apply sepia to the image

Parameter Default Description
rate 15 the darken rate

Examples
Sepia Filter Sepia Filter Sepia Filter

semigrayscale

Applies grayscale to an image, optionally add a grayscale percentage

Parameter Default Description
rate 75 The grayscale rate

Examples
Sepia Filter Sepia Filter Sepia Filter

sepiafast

Apply sepia to the image (fast)

Examples
Sepia fast Filter Sepia fast Filter Sepia fast Filter

sharpen

Sharpens the image

Examples
Sepia fast Filter

smooth

Makes the image smoother.

Parameter Default Description
rate 5 the darken rate

Examples
Smooth Filter Smooth Filter Smooth Filter

sobel

Sobel edge detect (extremely slow...)

Examples
Sobel Edge Detect Filter

sobeledge

Sobel edge enhance

Examples
Sobel Edge Detect Filter

truecolor

Makes the image smoother.

Parameter Default Description
primary ffffff the primary color
secundary 000000 the secundary color

Examples
Smooth Filter Smooth Filter Smooth Filter

vignette

Applies a darker mask around the edges of the image

Examples
Smooth Filter


All versions of imagemanipulation with dependencies

PHP Build Version
Package Version
Requires phpunit/phpunit Version ^4.8
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package elgervb/imagemanipulation contains the following files

Loading the files please wait ....