Imagick
Imagick
Imagick renderer for image manipulation.
class Imagick extends \Hazaar\File\Renderer\BaseRendererExtends: Hazaar\File\Renderer\BaseRenderer
Properties
dst
Store the dst.
private \Imagick $dstType: Imagick
quality
public int $qualityType: int
Methods
__construct
Create a new instance.
public __construct(?int $quality): voidParameters
| Parameter | Type | Description |
|---|---|---|
$quality | int |
load
Execute the load operation for this file component.
public load(string $bytes, ?string $type): intReturns: int
Parameters
| Parameter | Type | Description |
|---|---|---|
$bytes | string | |
$type | string |
read
Read and return file contents from backend storage.
public read(): false|stringReturns: false|string
quality
Execute the quality operation for this file component.
public quality(?int $quality): false|intReturns: false|int
Parameters
| Parameter | Type | Description |
|---|---|---|
$quality | int |
width
Execute the width operation for this file component.
public width(): intReturns: int
height
Execute the height operation for this file component.
public height(): intReturns: int
compress
Execute the compress operation for this file component.
public compress(int $quality): voidReturns: void
Parameters
| Parameter | Type | Description |
|---|---|---|
$quality | int |
resize
Resize the current image resource using the supplied dimensions.
public resize(?int $width, ?int $height, bool $crop, ?string $align, bool $keepAspect = true, bool $reduceOnly = true, ?float $ratio, int $offsetTop, int $offsetLeft): boolReturns: bool
Parameters
| Parameter | Type | Description |
|---|---|---|
$width | int | |
$height | int | |
$crop | bool | |
$align | string | |
$keepAspect | bool | |
$reduceOnly | bool | |
$ratio | float | |
$offsetTop | int | |
$offsetLeft | int |
expand
Execute the expand operation for this file component.
public expand(?int $xwidth, ?int $xheight, string $align = 'topleft', int $offsetTop, int $offsetLeft): boolReturns: bool
Parameters
| Parameter | Type | Description |
|---|---|---|
$xwidth | int | |
$xheight | int | |
$align | string | |
$offsetTop | int | |
$offsetLeft | int |
importPDF
Import p d f.
public importPDF(string $content, int $dpi = 160): boolReturns: bool
Parameters
| Parameter | Type | Description |
|---|---|---|
$content | string | |
$dpi | int |
filter
public filter(array|string $filterDef): boolReturns: bool
Parameters
| Parameter | Type | Description |
|---|---|---|
$filterDef | array | string |
Generated by Hazaar API Doc Generator on Fri, 04 Sep 2026 23:32:17 +0000