XOOPS RMCommon Utilities  2.1.8.91RC
 All Classes Namespaces Files Functions Variables
phMagick_resize Class Reference

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)
 

Detailed Description

Definition at line 30 of file resize.php.

Member Function Documentation

phMagick_resize::onTheFly ( phmagick  $p,
  $imageUrl,
  $width,
  $height,
  $exactDimentions = false,
  $webPath = '',
  $physicalPath = '' 
)

Creates a thumbnail of an image, if it doesn't exits

Parameters
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
Returns
String - the thumbnail URL

Definition at line 90 of file resize.php.

References phmagick\setDestination().

Here is the call graph for this function:

phMagick_resize::resize ( phmagick  $p,
  $width,
  $height = 0,
  $exactDimentions = false 
)
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

Parameters
$width
$height

Definition at line 58 of file resize.php.

References phmagick\getSource(), and phmagick\requirePlugin().

Here is the call graph for this function:


The documentation for this class was generated from the following file: