PHP Class image

Inheritance: extends Controller
Mostrar archivo Open project: anchorcms/anchor-cms Class Usage Examples

Public Methods

Method Description
__construct ( $src_image, $src_w, $src_h )
blur ( )
check_available_memory ( $file, $dst_w, $dst_h, $bloat = 1.68 )
crop ( $dst_w, $dst_h, $src_x, $src_y )
grayscale ( )
height ( )
open ( $file )
output ( $type = 'png', $file = null )
palette ( $percentages = [0.2, 0.7, 0.5] )
resize ( $dst_w, $dst_h )
sharpen ( )
width ( )

Method Details

__construct() public method

public __construct ( $src_image, $src_w, $src_h )

blur() public method

public blur ( )

check_available_memory() public method

public check_available_memory ( $file, $dst_w, $dst_h, $bloat = 1.68 )

crop() public method

public crop ( $dst_w, $dst_h, $src_x, $src_y )

grayscale() public method

public grayscale ( )

height() public method

public height ( )

open() public static method

public static open ( $file )

output() public method

public output ( $type = 'png', $file = null )

palette() public method

public palette ( $percentages = [0.2, 0.7, 0.5] )

resize() public method

public resize ( $dst_w, $dst_h )

sharpen() public method

public sharpen ( )

width() public method

public width ( )