BaseHandler.php
system/Images/Handlers/BaseHandler.php
1 class
34 methods
class BaseHandler
Base image handling implementation
__construct
($config = null)
withFile
(string $path)
ensureResource
()
getFile
()
image
()
getResource
()
withResource
()
resize
(int $width, int $height, bool $maintainRatio = false, string $masterDim = 'auto')
crop
(?int $width = null, ?int $height = null, ?int $x = null, ?int $y = null, bool $maintainRatio = false, string $masterDim = 'auto')
convert
(int $imageType)
rotate
(float $angle)
flatten
(int $red = 255, int $green = 255, int $blue = 255)
_flatten
(int $red = 255, int $green = 255, int $blue = 255)
_rotate
(int $angle)
flip
(string $dir = 'vertical')
_flip
(string $direction)
text
(string $text, array $options = [])
_text
(string $text, array $options = [])
_resize
(bool $maintainRatio = false)
_crop
()
_getWidth
()
_getHeight
()
reorient
(bool $silent = false)
getEXIF
(?string $key = null, bool $silent = false)
fit
(int $width, ?int $height = null, string $position = 'center')
calcAspectRatio
($width, $height = null, $origWidth = 0, $origHeight = 0)
calcCropCoords
($width, $height, $origWidth, $origHeight, $position)
getVersion
()
save
(?string $target = null, int $quality = 90)
process
(string $action)
__call
(string $name, array $args = [])
reproportion
()
getWidth
()
getHeight
()