library/Dot/Image/Resize.php
Properties
category
copyright
license
package
version
Description DotBoost Technologies Inc.
DotKernel Application Framework
Classes
Dot_Image_Resize
Properties
Extends
Implements
author
category
package
subpackage
Abstract No
Final No
Description
Resize images
Methods
__construct ,
_getImageString ,
resize ,
setOption ,
Description
Constructor
Return value
Tags
Name
Description
access
public
_getImageString(
)
:
string
Description
Get string contents from original image
Return value
Tags
Name
Description
access
public
resize(
)
:
array
Description
Resize image. Return possible errors encountered
Return value
Tags
Name
Description
access
public
setOption(
object
$option,
)
:
void
Description
Set the image options
Arguments
Name
Type
Description
Default
$option
object
Return value
Properties
$_imageDestination ,
$_imageSource ,
$_option ,
$destination ,
$source ,
public
$_imageDestination
=
Destination imageresource
public
$_imageSource
=
Source imageresource
private
$_option
=
array
Image options
Is an array with the following keys
- width: integer
- height: integer
- measure: 'px', '%'
- preview: bool [TRUE][FALSE] - if true, preserve the ratio aspect
- exactSize: bool [TRUE][FALSE] - if true, make the image the
exact size, even if it will be twistarray
public
$destination
=
New image, after transformationstring
public
$source
=
Image filenamestring