v1.0.0
English

BaseHandler.php

system/Images/Handlers/BaseHandler.php
1 class 34 methods

class BaseHandler

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