Properties

$src

$src : 

Type

$actions

$actions : 

Type

$resize_width

$resize_width : 

Type

$resize_height

$resize_height : 

Type

$image

$image : 

Type

$imageinfo

$imageinfo : 

Type

$crop_width

$crop_width : 

Type

$crop_height

$crop_height : 

Type

$crop_position

$crop_position : 

Type

$ext

$ext : 

Type

Methods

__construct()

__construct(  $src) 

Parameters

$src

create()

create(  $src) 

Parameters

$src

resize()

resize(  $width,   $height) 

Parameters

$width
$height

crop()

crop(  $width = 400,   $height = 300,   $position = 1) 

Parameters

$width
$height
$position

getExt()

getExt() 

isPng()

isPng() 

isJPEG()

isJPEG() 

isGif()

isGif() 

saveTo()

saveTo(  $path,   $quality = null) 

Parameters

$path
$quality

toBase64()

toBase64(  $prefix = 'data:image/%s;base64,') 

Parameters

$prefix

handle()

handle() 

doCrop()

doCrop(  $src_image) 

Parameters

$src_image

doResize()

doResize(  $src_image) 

Parameters

$src_image

modify()

modify(  $src_image,   $width,   $height,   $src_width,   $src_height,   $dst_x,   $dst_y,   $src_x,   $src_y) 

Parameters

$src_image
$width
$height
$src_width
$src_height
$dst_x
$dst_y
$src_x
$src_y

realQuality()

realQuality(  $quality = null) 

Parameters

$quality

image()

image() 

destroy()

destroy() 

createResource()

createResource() 

getCropDestPoint()

getCropDestPoint()