XOOPS  2.6.0
imageLib Class Reference

Public Member Functions

 __construct ($fileName)#Author
 
 cropImage ($newWidth, $newHeight, $cropPos= 'm')#Author
 
 resizeImage ($newWidth, $newHeight, $option=0, $sharpen=false, $autoRotate=false)#Author
 

Protected Attributes

 $imageResized
 

Private Member Functions

 crop ($optimalWidth, $optimalHeight, $newWidth, $newHeight, $cropPos)#Author
 
 getCropPlacing ($optimalWidth, $optimalHeight, $newWidth, $newHeight, $pos='m')##Author
 
 getDimensions ($newWidth, $newHeight, $option)#Author
 
 getOptimalCrop ($newWidth, $newHeight)#Author
 
 getSizeByAuto ($newWidth, $newHeight)#Author
 
 getSizeByFixedHeight ($newWidth, $newHeight)
 
 getSizeByFixedWidth ($newWidth, $newHeight)
 
 initialise ()
 
 keepTransparancy ($width, $height, $im)#Author
 
 sharpen ()#Author
 
 sharpen2 ($level)
 

Private Attributes

 $aggresiveSharpening = false
 
 $captionBoxPositionArray = array()
 
 $cropFromTopPercent = 10
 
 $debug = true
 
 $errorArray = array()
 
 $fileExtension
 
 $fileName
 
 $fillColorArray = array('r'=>255, 'g'=>255, 'b'=>255)
 
 $filterOverlayPath
 
 $fontDir = 'fonts'
 
 $forceStretch = true
 
 $height
 
 $heightOriginal
 
 $image
 
 $imageSize
 
 $isInterlace
 
 $keepTransparency = true
 
 $psdReaderPath
 
 $sharpenArray = array('jpg')
 
 $transparentArray = array('.png', '.gif')
 
 $width
 
 $widthOriginal
 

Detailed Description

Definition at line 163 of file php_image_magician.php.

Constructor & Destructor Documentation

imageLib::__construct (   $fileName)

Definition at line 202 of file php_image_magician.php.

References $fileName, $image, fix_strtolower(), and initialise().

Here is the call graph for this function:

Member Function Documentation

imageLib::crop (   $optimalWidth,
  $optimalHeight,
  $newWidth,
  $newHeight,
  $cropPos 
)
private

Definition at line 427 of file php_image_magician.php.

References getCropPlacing(), and keepTransparancy().

Referenced by cropImage(), and resizeImage().

Here is the call graph for this function:

Here is the caller graph for this function:

imageLib::cropImage (   $newWidth,
  $newHeight,
  $cropPos = 'm' 
)

Definition at line 377 of file php_image_magician.php.

References $image, and crop().

Here is the call graph for this function:

imageLib::getCropPlacing (   $optimalWidth,
  $optimalHeight,
  $newWidth,
  $newHeight,
  $pos = 'm' 
)
private

Definition at line 459 of file php_image_magician.php.

References fix_strtolower().

Referenced by crop().

Here is the call graph for this function:

Here is the caller graph for this function:

imageLib::getDimensions (   $newWidth,
  $newHeight,
  $option 
)
private

Definition at line 554 of file php_image_magician.php.

References getOptimalCrop(), getSizeByAuto(), getSizeByFixedHeight(), and getSizeByFixedWidth().

Referenced by resizeImage().

Here is the call graph for this function:

Here is the caller graph for this function:

imageLib::getOptimalCrop (   $newWidth,
  $newHeight 
)
private

Definition at line 722 of file php_image_magician.php.

Referenced by getDimensions().

Here is the caller graph for this function:

imageLib::getSizeByAuto (   $newWidth,
  $newHeight 
)
private

Definition at line 657 of file php_image_magician.php.

References getSizeByFixedHeight(), and getSizeByFixedWidth().

Referenced by getDimensions().

Here is the call graph for this function:

Here is the caller graph for this function:

imageLib::getSizeByFixedHeight (   $newWidth,
  $newHeight 
)
private

Definition at line 615 of file php_image_magician.php.

References $height.

Referenced by getDimensions(), and getSizeByAuto().

Here is the caller graph for this function:

imageLib::getSizeByFixedWidth (   $newWidth,
  $newHeight 
)
private

Definition at line 636 of file php_image_magician.php.

References $width.

Referenced by getDimensions(), and getSizeByAuto().

Here is the caller graph for this function:

imageLib::initialise ( )
private

Definition at line 255 of file php_image_magician.php.

Referenced by __construct().

Here is the caller graph for this function:

imageLib::keepTransparancy (   $width,
  $height,
  $im 
)
private

Definition at line 403 of file php_image_magician.php.

References $width.

Referenced by crop(), and resizeImage().

Here is the caller graph for this function:

imageLib::resizeImage (   $newWidth,
  $newHeight,
  $option = 0,
  $sharpen = false,
  $autoRotate = false 
)

Definition at line 271 of file php_image_magician.php.

References crop(), fix_strtolower(), getDimensions(), keepTransparancy(), option, and sharpen().

Here is the call graph for this function:

imageLib::sharpen ( )
private

Definition at line 780 of file php_image_magician.php.

Referenced by resizeImage().

Here is the caller graph for this function:

imageLib::sharpen2 (   $level)
private

Definition at line 826 of file php_image_magician.php.

Member Data Documentation

imageLib::$aggresiveSharpening = false
private

Definition at line 180 of file php_image_magician.php.

imageLib::$captionBoxPositionArray = array()
private

Definition at line 193 of file php_image_magician.php.

imageLib::$cropFromTopPercent = 10
private

Definition at line 197 of file php_image_magician.php.

imageLib::$debug = true
private

Definition at line 176 of file php_image_magician.php.

imageLib::$errorArray = array()
private

Definition at line 177 of file php_image_magician.php.

imageLib::$fileExtension
private

Definition at line 174 of file php_image_magician.php.

imageLib::$fileName
private

Definition at line 166 of file php_image_magician.php.

Referenced by __construct().

imageLib::$fillColorArray = array('r'=>255, 'g'=>255, 'b'=>255)
private

Definition at line 184 of file php_image_magician.php.

imageLib::$filterOverlayPath
private

Definition at line 189 of file php_image_magician.php.

imageLib::$fontDir = 'fonts'
private

Definition at line 195 of file php_image_magician.php.

imageLib::$forceStretch = true
private

Definition at line 179 of file php_image_magician.php.

imageLib::$height
private

Definition at line 172 of file php_image_magician.php.

Referenced by getSizeByFixedHeight().

imageLib::$heightOriginal
private

Definition at line 170 of file php_image_magician.php.

imageLib::$image
private

Definition at line 167 of file php_image_magician.php.

Referenced by __construct(), and cropImage().

imageLib::$imageResized
protected

Definition at line 168 of file php_image_magician.php.

imageLib::$imageSize
private

Definition at line 173 of file php_image_magician.php.

imageLib::$isInterlace
private

Definition at line 191 of file php_image_magician.php.

imageLib::$keepTransparency = true
private

Definition at line 183 of file php_image_magician.php.

imageLib::$psdReaderPath
private

Definition at line 188 of file php_image_magician.php.

imageLib::$sharpenArray = array('jpg')
private

Definition at line 186 of file php_image_magician.php.

imageLib::$transparentArray = array('.png', '.gif')
private

Definition at line 182 of file php_image_magician.php.

imageLib::$width
private

Definition at line 171 of file php_image_magician.php.

Referenced by getSizeByFixedWidth(), and keepTransparancy().

imageLib::$widthOriginal
private

Definition at line 169 of file php_image_magician.php.


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