canResize()
createFromFile()
createFromFileDirect()
createImage()
createImageDirect()
crop()
getHeight()
getOrientation()
getWidth()
output()
thumbnail()
thumbnailFixedShorterSide()
__construct()
_getDefaultClassName()
$_height
$_width
ORIENTATION_LANDSCAPE
ORIENTATION_PORTRAIT
ORIENTATION_SQUARE
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
crop(\$x $x, \$y $y, \$width $width, \$height $height)
\$x
Crop start x position
\$y
Crop start y position
\$width
Crop width
\$height
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