Abstract image processor.
Includes factory for creating concrete image processors.
package | XenForo_Image |
---|
canResize(integer $width, integer $height) : boolean
integer
integer
boolean
createFromFile(string $fileName, integer $inputType) : \XenForo_Image_Abstract
string
integer
IMAGETYPE_XYZ constant representing image type
createFromFileDirect(string $fileName, integer $inputType) : \XenForo_Image_Abstract | false
string
integer
IMAGETYPE_XYZ constant representing image type
createImage(integer $width, integer $height) : \XenForo_Image_Abstract
createImageDirect(integer $width, integer $height) : \XenForo_Image_Abstract
crop($x, $y, $width, $height)
Crop start x position
Crop start y position
Crop width
Crop height
getHeight() : integer
integer
getOrientation() : string
string
One of the ORIENTATION_ constantsgetWidth() : integer
integer
output(\constant $outputType, string | null $outputFile, integer $quality) : boolean
If no output file is specified, the image is printed to the screen.
\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
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(integer $shortSideWidth)
integer
__construct()
Use static method to create.
_getDefaultClassName() : string
string
$_height : integer
This must stay current with manipulations.
$_width : integer
This must stay current with manipulations.
ORIENTATION_LANDSCAPE
ORIENTATION_PORTRAIT
ORIENTATION_SQUARE