PHP Class image

Inheritance: extends Controller
Afficher le fichier Open project: anchorcms/anchor-cms Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

blur() public méthode

public blur ( )

check_available_memory() public méthode

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

crop() public méthode

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

grayscale() public méthode

public grayscale ( )

height() public méthode

public height ( )

open() public static méthode

public static open ( $file )

output() public méthode

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

palette() public méthode

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

resize() public méthode

public resize ( $dst_w, $dst_h )

sharpen() public méthode

public sharpen ( )

width() public méthode

public width ( )