|
XOOPS RMCommon Utilities
2.1.8.91RC
|
Public Member Functions | |
| onTheFly (phmagick $p, $imageUrl, $width, $height, $exactDimentions=false, $webPath= '', $physicalPath='') | |
| resize (phmagick $p, $width, $height=0, $exactDimentions=false) | |
| resizeExactly (phmagick $p, $width, $height) | |
Definition at line 30 of file resize.php.
| phMagick_resize::onTheFly | ( | phmagick | $p, |
| $imageUrl, | |||
| $width, | |||
| $height, | |||
$exactDimentions = false, |
|||
$webPath = '', |
|||
$physicalPath = '' |
|||
| ) |
Creates a thumbnail of an image, if it doesn't exits
| String | $imageUrl | - The image Url |
| Mixed | $width | - String / Integer |
| Mixed | $height | - String / Integer |
| boolean,: | False: resizes the image to the exact porportions (aspect ratio not preserved). True: preserves aspect ratio, only resises if image is bigger than specified measures |
Definition at line 90 of file resize.php.
References phmagick\setDestination().

| phMagick_resize::resize | ( | phmagick | $p, |
| $width, | |||
$height = 0, |
|||
$exactDimentions = false |
|||
| ) |
Definition at line 31 of file resize.php.
References $p, phmagick\execute(), phmagick\getBinary(), phmagick\getDestination(), phmagick\getImageQuality(), phmagick\getSource(), phmagick\setHistory(), and phmagick\setSource().

| phMagick_resize::resizeExactly | ( | phmagick | $p, |
| $width, | |||
| $height | |||
| ) |
tries to resize an image to the exact size wile mantaining aspect ratio, the image will be croped to fit the measures
| $width | |
| $height |
Definition at line 58 of file resize.php.
References phmagick\getSource(), and phmagick\requirePlugin().
