__destruct()
canResize()
createFromFile()
createFromFileDirect()
createImage()
createImageDirect()
crop()
getHeight()
getOrientation()
getWidth()
output()
thumbnail()
thumbnailFixedShorterSide()
__construct()
_getDefaultClassName()
_setImage()
_updateDimensionCache()
$_height
$_image
$_width
ORIENTATION_LANDSCAPE
ORIENTATION_PORTRAIT
ORIENTATION_SQUARE
Image processor using imagick PECL extension.
Includes factory for creating concrete image processors.
package | XenForo_Image |
---|---|
author | SMV |
__destruct()
canResize(integer $width, integer $height) : boolean
inherited_from | \XenForo_Image_Abstract::canResize() |
---|
integer
integer
boolean
createFromFile(string $fileName, integer $inputType) : \XenForo_Image_Abstract
inherited_from | \XenForo_Image_Abstract::createFromFile() |
---|
string
integer
IMAGETYPE_XYZ constant representing image type
createFromFileDirect(string $fileName, integer $inputType) : \XenForo_Image_Imagemagick_Pecl | false
string
integer
IMAGETYPE_XYZ constant representing image type
createImage(integer $width, integer $height) : \XenForo_Image_Abstract
inherited_from | \XenForo_Image_Abstract::createImage() |
---|
integer
integer
createImageDirect(integer $width, integer $height) : \XenForo_Image_Imagemagick_Pecl
crop(\$x $x, \$y $y, \$width $width, \$height $height)
see | \global\XenForo_Image_Abstract::crop() |
---|
\$x
Crop start x position
\$y
Crop start y position
\$width
Crop width
\$height
Crop height
getHeight() : integer
inherited_from | \XenForo_Image_Abstract::getHeight() |
---|
integer
getOrientation() : string
inherited_from | \XenForo_Image_Abstract::getOrientation() |
---|
string
One of the ORIENTATION_ constantsgetWidth() : integer
inherited_from | \XenForo_Image_Abstract::getWidth() |
---|
integer
output(\constant $outputType, string | null $outputFile, integer $quality) : boolean
If no output file is specified, the image is printed to the screen.
see | \global\XenForo_Image_Abstract::output() |
---|
\constant
One of the IMAGETYPE_XYZ constants
string
null
If specified, the file to write to; else, prints to screen
integer
Quality of outputted file (from 0 to 100)
boolean
True on successthumbnail(integer $maxWidth, integer $maxHeight) : boolean
see | \global\XenForo_Image_Abstract::thumbnail() |
---|
integer
The maximum width of the thumb.
integer
Maximum height of the thumb; if not specified, uses max width.
boolean
True if thumbnailing was necessarythumbnailFixedShorterSide($shortSideLength)
see | \global\XenForo_Image_Abstract::thumbnailFixedShorterSide |
---|
__construct(\Imagick $image)
Use static method to create.
resource
Imagick object
_getDefaultClassName() : string
inherited_from | \XenForo_Image_Abstract::_getDefaultClassName() |
---|
string
_setImage(\Imagick $image)
resource
_updateDimensionCache()
$_height : integer
This must stay current with manipulations.
inherited_from | \XenForo_Image_Abstract::$$_height |
---|
$_image : \Imagick
$_width : integer
This must stay current with manipulations.
inherited_from | \XenForo_Image_Abstract::$$_width |
---|
ORIENTATION_LANDSCAPE
inherited_from | \XenForo_Image_Abstract::ORIENTATION_LANDSCAPE |
---|
ORIENTATION_PORTRAIT
inherited_from | \XenForo_Image_Abstract::ORIENTATION_PORTRAIT |
---|
ORIENTATION_SQUARE
inherited_from | \XenForo_Image_Abstract::ORIENTATION_SQUARE |
---|