Download the PHP package eden/image without Composer
On this page you can find all versions of the php package eden/image. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package image
Short Description Eden image component.
License MIT
Homepage http://eden-php.com
Informations about the package image
Eden Image
- Install
- Introduction
- API
- blur
- brightness
- colorize
- contrast
- crop
- edgedetect
- emboss
- gaussianBlur
- getDimensions
- getResource
- greyscale
- invert
- meanRemoval
- negative
- resize
- rotate
- scale
- setTransparency
- smooth
- save
- Contributing
====
Install
composer install eden/image
====
Introduction
Instantiate image in this manner.
Once you are done modifying the image you can save the image to a file or simply echo out the image object like below.
====
API
====
blur
Applies the selective blur filter. Blurs the image
Usage
Parameters
Returns Eden\Image\Index
====
brightness
Applies the brightness filter. Changes the brightness of the image.
Usage
Parameters
*number $level
- The level of brightness
Returns Eden\Image\Index
Example
====
colorize
Applies the colorize filter. Like greyscale except you can specify the color.
Usage
Parameters
*number $red
- The 255 value of red to use*number $blue
- The 255 value of blue to use*number $green
- The 255 value of green to usenumber $alpha
- The level of alpha transparency
Returns Eden\Image\Index
Example
====
contrast
Applies the contrast filter. Changes the contrast of the image.
Usage
Parameters
*number $level
- The level of contrast
Returns Eden\Image\Index
Example
====
crop
Crops the image
Usage
Parameters
int|null $width
- The width; If null will use the original widthint|null $height
- The height; If null will use the original height
Returns Eden\Image\Index
Example
====
edgedetect
Applies the edgedetect filter. Uses edge detection to highlight the edges in the image.
Usage
Parameters
Returns Eden\Image\Index
====
emboss
Applies the emboss filter. Embosses the image.
Usage
Parameters
Returns Eden\Image\Index
====
gaussianBlur
Applies the gaussian blur filter. Blurs the image using the Gaussian method.
Usage
Parameters
Returns Eden\Image\Index
====
getDimensions
Returns the size of the image
Usage
Parameters
Returns array
====
getResource
Returns the resource for custom editing
Usage
Parameters
Returns [RESOURCE]
====
greyscale
Applies the greyscale filter. Converts the image into grayscale.
Usage
Parameters
Returns Eden\Image\Index
====
invert
Inverts the image.
Usage
Parameters
bool $vertical
- If true invert vertical; if false invert horizontal
Returns Eden\Image\Index
Example
====
meanRemoval
Applies the mean removal filter. Uses mean removal to achieve a "sketchy" effect.
Usage
Parameters
Returns Eden\Image\Index
====
negative
Applies the greyscale filter. Reverses all colors of the image.
Usage
Parameters
Returns Eden\Image\Index
====
resize
Resizes the image. This is a version of scale but keeping it's original aspect ratio
Usage
Parameters
int|null $width
- the width; if null will use the original widthint|null $height
- the height; if null will use the original height
Returns Eden\Image\Index
Example
====
rotate
Rotates the image.
Usage
Parameters
*int $degree
- The degree to rotate byint $background
- Background color code
Returns Eden\Image\Index
Example
====
scale
Scales the image. If width or height is set to null a width or height will be auto determined based on the aspect ratio
Usage
Parameters
int|null $width
- The width; if null will use the original widthint|null $height
- The height; if null will use the original height
Returns Eden\Image\Index
Example
====
setTransparency
Sets the background color to be transparent
Usage
Parameters
Returns Eden\Image\Index
====
smooth
Applies the smooth filter. Makes the image smoother.
Usage
Parameters
*number $level
- The level of smoothness
Returns Eden\Image\Index
Example
====
save
Saves the image data to a file
Usage
Parameters
*string $path
- The path to save tostring|null $type
- The render type
Returns Eden\Image\Index
Example
====
Contributing to Eden
Contributions to Eden are following the Github work flow. Please read up before contributing.
Setting up your machine with the Eden repository and your fork
- Fork the repository
- Fire up your local terminal create a new branch from the
v4
branch of your fork with a branch name describing what your changes are. Possible branch name types:- bugfix
- feature
- improvement
- Make your changes. Always make sure to sign-off (-s) on all commits made (git commit -s -m "Commit message")
Making pull requests
- Please ensure to run
phpunit
before making a pull request. - Push your code to your remote forked version.
- Go back to your forked version on GitHub and submit a pull request.
- An Eden developer will review your code and merge it in when it has been classified as suitable.
All versions of image with dependencies
eden/core Version 4.*
eden/string Version 4.*
eden/array Version 4.*
eden/path Version 4.*
eden/file Version 4.*