Download the PHP package jackal/image-merge without Composer
On this page you can find all versions of the php package jackal/image-merge. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jackal/image-merge
More information about jackal/image-merge
Files in jackal/image-merge
Package image-merge
Short Description A simple PHP libraty to manipulate images
License MIT
Informations about the package image-merge
Image Merge
A simple PHP libraty to manipulate images, it support GIF, PNG and JPG
Requirement
PHP >= 5.6 with GD support *For some additional features (for example image distortion) ImageMagick binaries are required.
Getting Started
Install library with composer
Usage
Minimal example
Get the image content directly to the output
Save image to path
Get image Response object (Compatible with Symgony projects)
resize
At least one parameter is required In case just one parameter is passed, it will resize maintaining the aspect ratio of the image
If both parameters are passed, it could stretch the image
thumbnail
Similar to Resize
but in case the aspect ratio is not respected, it will crop the image (using cropCenter
)
rotate
Rotate the image (counterclockwise)
*In case of particular angle (30, 45, etc..) it will create blank area to fill the empty spaces
grayscale
Add a graysclae filter to the image
brightness
Adjusts the brightness of the image
blur
Adds blur effect on the image
pixelate
Adds "Pixel" effect on the image
crop
and cropCenter
Crop Crop the image according to the x and y coords and the output dimention passed
Crop at the center of the image according to the width and height of the output image
border
It adds border to the image (fill inside the rect)
Experimental features that will likely change in the future
addText
It adds text inside the image
addSquare
It adds a square (color-filled) on the image
===========================================================================
Author
- Luca Giacalone (AKA JackalOne)
License
This project is licensed under the MIT License
All versions of image-merge with dependencies
ext-gd Version *
ext-exif Version *
symfony/http-foundation Version >=3.4
jackal/bin-locator Version ^0.5