Свойство | Тип | Описание | |
---|---|---|---|
$_absoluteCacheImageDir | string | Parent directory of cached image file (absolute path) | |
$_absoluteCacheImagePath | string | Cached image file (absolute path) | |
$_absoluteImagePath | string | Requested image file (absolute path) | |
$_quantizers | array | Valid quantizers | |
$_relativeImagePath | string | Requested image file (relative path to document root) |
Метод | Описание | |
---|---|---|
instance ( string $image ) : |
Instanciate an image adaptor | |
send ( ) : void | Send the cached and possibly downsampled image | |
squeeze ( string $source, string $target, string $breakpoint = SQUEEZR_BREAKPOINT, array &$errors = [] ) : string | Squeeze a particular source file |
Метод | Описание | |
---|---|---|
__construct ( string $image ) | Constructor | |
_downscaleGif ( string $source, integer $width, integer $height, string $target, integer $targetWidth, integer $targetHeight ) : boolean | Downscale a GIF image | |
_downscaleJpeg ( string $source, integer $width, integer $height, string $target, integer $targetWidth, integer $targetHeight ) : boolean | Downscale a JPEG image | |
_downscalePng ( string $source, integer $width, integer $height, string $target, integer $targetWidth, integer $targetHeight ) : boolean | Downscale a PNG image | |
_enableTranparency ( resource $image, array $transparentColor = null ) : void | Enable transparency on an image resource | |
_sharpenImage ( resource $image, integer $width, integer $targetWidth ) : void | Sharpen an image |
protected __construct ( string $image ) | ||
$image | string | Image file |
protected static _downscaleGif ( string $source, integer $width, integer $height, string $target, integer $targetWidth, integer $targetHeight ) : boolean | ||
$source | string | Source image path |
$width | integer | Source image width |
$height | integer | Source image height |
$target | string | Target image path |
$targetWidth | integer | Target image width |
$targetHeight | integer | Target image height |
Результат | boolean | Downscaled image has been saved |
protected static _downscaleJpeg ( string $source, integer $width, integer $height, string $target, integer $targetWidth, integer $targetHeight ) : boolean | ||
$source | string | Source image path |
$width | integer | Source image width |
$height | integer | Source image height |
$target | string | Target image path |
$targetWidth | integer | Target image width |
$targetHeight | integer | Target image height |
Результат | boolean | Downscaled image has been saved |
protected static _downscalePng ( string $source, integer $width, integer $height, string $target, integer $targetWidth, integer $targetHeight ) : boolean | ||
$source | string | Source image path |
$width | integer | Source image width |
$height | integer | Source image height |
$target | string | Target image path |
$targetWidth | integer | Target image width |
$targetHeight | integer | Target image height |
Результат | boolean | Downscaled image has been saved |
protected static _enableTranparency ( resource $image, array $transparentColor = null ) : void | ||
$image | resource | Image resource |
$transparentColor | array | Transparent color |
Результат | void |
protected string $_absoluteCacheImageDir | ||
Результат | string |
protected string $_absoluteCacheImagePath | ||
Результат | string |
protected string $_absoluteImagePath | ||
Результат | string |
protected static array $_quantizers | ||
Результат | array |
protected string $_relativeImagePath | ||
Результат | string |