Method | Description | |
---|---|---|
__construct ( array $configuration = [] ) | ||
apply_filter ( ) | You should only call this when you're ready to save, it often overwrites your image a few times (not always though) * | |
brightness_contrast ( integer $brightness, integer $contrast ) : |
Replicate brightness/contrast photoshop function | |
colorize ( string $color, integer $composition = Imagick::COMPOSITE_MULTIPLY ) : |
Replicate Colorize function | |
curves ( array $points, integer $channel = null ) : |
Replicate photoshop's curves function | |
curves_graph ( string $fx ) : |
Perform an imagemagick-style function on each pixel | |
exec ( string $command, string $params ) : |
Execute a manual CLI command -- normally used when there's no PHP alternatice | |
gamma ( float $gamma, integer $channel = null ) : |
Change the gamma of an image | |
hsl ( integer $hue, integer $saturation, integer $lightness ) : |
Replicate HSL function | |
image ( &$image = null ) | ||
imagick ( &$imagick = null ) | This is the imagemagick instance to perform the filters on | |
levels ( float $gamma = 1, integer $input_min, integer $input_max = 255, integer $output_min, integer $output_max = 255, integer $channel = Imagick::CHANNEL_ALL ) : |
Replicate Photoshop's levels function. | |
vignette ( string $color, integer $composition = Imagick::COMPOSITE_DEFAULT, float $crop_factor = 1.5 ) : |
Adds a vignette to the image |
Method | Description | |
---|---|---|
_exec ( type $program, type $params, type $passthru = false ) : type | Execute the command |
abstract public apply_filter ( ) |
public brightness_contrast ( integer $brightness, integer $contrast ) : |
||
$brightness | integer | this is should be -150 <= brightnes <= 150. 0 for no change. |
$contrast | integer | this is should be -150 <= contrast <= 150. 0 for no change. |
return |
public curves_graph ( string $fx ) : |
||
$fx | string | the function |
return |
public imagick ( &$imagick = null ) |
public levels ( float $gamma = 1, integer $input_min, integer $input_max = 255, integer $output_min, integer $output_max = 255, integer $channel = Imagick::CHANNEL_ALL ) : |
||
$gamma | float | |
$input_min | integer | between 0 and 255, same as photoshops |
$input_max | integer | between 0 and 255, same as photoshops |
$output_min | integer | between 0 and 255, same as photoshops |
$output_max | integer | between 0 and 255, same as photoshops |
$channel | integer | use imagemagicks constants |
return |
public vignette ( string $color, integer $composition = Imagick::COMPOSITE_DEFAULT, float $crop_factor = 1.5 ) : |
||
$color | string | the colour of the vignette |
$composition | integer | an imagick constant defining the composition to use |
$crop_factor | float | defines the strenth of the vignette |
return |