Method |
Description |
|
__construct ( string $filename ) : ImageResize |
Loads image source and its properties to the instanciated object |
|
__toString ( ) : string |
Convert the image to string with the current settings |
|
createFromString ( string $image_data ) : ImageResize |
Create instance from a strng |
|
crop ( integer $width, integer $height, boolean $allow_enlarge = false, integer $position = self::CROPCENTER ) : static |
Crops image according to the given width, height and crop position |
|
freecrop ( integer $width, integer $height, integer $x = false, integer $y = false ) : static |
Crops image according to the given width, height, x and y |
|
getDestHeight ( ) : integer |
Gets height of the destination image |
|
getDestWidth ( ) : integer |
Gets width of the destination image |
|
getImageAsString ( integer $image_type = null, integer $quality = null ) : string |
Convert the image to string |
|
getSourceHeight ( ) : integer |
Gets source height |
|
getSourceWidth ( ) : integer |
Gets source width |
|
imageCreateJpegfromExif ( $filename ) |
http://stackoverflow.com/a/28819866 |
|
output ( string $image_type = null, integer $quality = null ) |
Outputs image to browser |
|
resize ( integer $width, integer $height, boolean $allow_enlarge = false ) : static |
Resizes image according to the given width and height |
|
resizeToBestFit ( integer $max_width, integer $max_height, boolean $allow_enlarge = false ) : static |
Resizes image to best fit inside the given dimensions |
|
resizeToHeight ( integer $height, boolean $allow_enlarge = false ) : static |
Resizes image according to the given height (width proportional) |
|
resizeToWidth ( integer $width, boolean $allow_enlarge = false ) : static |
Resizes image according to the given width (height proportional) |
|
save ( string $filename, string $image_type = null, integer $quality = null, integer $permissions = null ) : static |
Saves new image |
|
scale ( integer | float $scale ) : static |
Resizes image according to given scale (proportionally) |
|