Class Image
Methods summary
public static
|
|
public static
array
|
#
compute_final_size( integer $w, integer $h, string $method, string|array $src )
Compute the final dimensions of a resized image. |
public static
boolean
|
#
assert_sizes( string $m, integer $w, integer $h )
Asserts that the specified width and height can be used with the specified resize method. |
public static
resource
|
|
public static
|
|
public static
array
|
|
public static
|
Magic methods summary
Constants summary
string |
RESIZE_NONE
|
'none' |
|
string |
RESIZE_FIT
|
'fit' |
|
string |
RESIZE_FILL
|
'fill' |
|
string |
RESIZE_FIXED_HEIGHT
|
'fixed-height' |
|
string |
RESIZE_FIXED_HEIGHT_CROPPED
|
'fixed-height-cropped' |
|
string |
RESIZE_FIXED_WIDTH
|
'fixed-width' |
|
string |
RESIZE_FIXED_WIDTH_CROPPED
|
'fixed-width-cropped' |
|
string |
RESIZE_SURFACE
|
'surface' |
|
string |
RESIZE_SIMPLE
|
'simple' |
|
string |
RESIZE_CONSTRAINED
|
'constrained' |
Properties summary
public static
array
|
$grid_sizes | |
public static
array
|
$grid_color_schemes | |
public static
array
|
$color_names |