PHP Class Lime\Helper\Img

Show file Open project: sjardim/Hugopit

Protected Properties

Property Type Description
$image
$imagine

Public Methods

Method Description
__construct ( $img )
base64data ( $format = null, $quality = 100 )
best_fit ( $width, $height )
colorize ( $colorhex, $opacity = 1 )
crop ( $startX, $startY, $endX, $endY )
flipHorizontally ( )
flipVertically ( )
grayscale ( )
negative ( )
overlay ( $overlay_file, $position = 'center', $opacity = 1, $x_offset, $y_offset )
resize ( $width, $height )
rotate ( $angle )
save ( $path, $quality = 100 )
show ( $format = null, $quality = 100 )
sketch ( )
text ( $text, $font_file, $font_size = 12, $color = '#000000', $position = 'center', $x_offset, $y_offset )
thumbnail ( $width, $height )

Method Details

__construct() public method

public __construct ( $img )

base64data() public method

public base64data ( $format = null, $quality = 100 )

best_fit() public method

public best_fit ( $width, $height )

colorize() public method

public colorize ( $colorhex, $opacity = 1 )

crop() public method

public crop ( $startX, $startY, $endX, $endY )

flipHorizontally() public method

public flipHorizontally ( )

flipVertically() public method

public flipVertically ( )

grayscale() public method

public grayscale ( )

negative() public method

public negative ( )

overlay() public method

public overlay ( $overlay_file, $position = 'center', $opacity = 1, $x_offset, $y_offset )

resize() public method

public resize ( $width, $height )

rotate() public method

public rotate ( $angle )

save() public method

public save ( $path, $quality = 100 )

show() public method

public show ( $format = null, $quality = 100 )

sketch() public method

public sketch ( )

text() public method

public text ( $text, $font_file, $font_size = 12, $color = '#000000', $position = 'center', $x_offset, $y_offset )

thumbnail() public method

public thumbnail ( $width, $height )

Property Details

$image protected property

protected $image

$imagine protected property

protected $imagine