GD
Less than 1 minute
GD
GD renderer for image manipulation.
class GD extends \Hazaar\File\Renderer\BaseRendererProperties
public $type
Store the type.
private string $typequality
public int $qualityMethods
__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): intParameters
| Parameter | Type | Description |
|---|---|---|
$bytes | string | |
$type | string |
read
Read and return file contents from backend storage.
public read(): stringquality
Execute the quality operation for this file component.
public quality(?int $quality): intParameters
| Parameter | Type | Description |
|---|---|---|
$quality | int |
width
Execute the width operation for this file component.
public width(): intheight
Execute the height operation for this file component.
public height(): intcompress
Execute the compress operation for this file component.
public compress(int $quality): voidParameters
| 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): boolParameters
| 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): boolParameters
| Parameter | Type | Description |
|---|---|---|
$xwidth | int | |
$xheight | int | |
$align | string | |
$offsetTop | int | |
$offsetLeft | int |
filter
public filter(string $filterDef): boolParameters
| Parameter | Type | Description |
|---|---|---|
$filterDef | string |
Generated by Hazaar API Doc Generator on Tue, 21 Apr 2026 04:00:24 +0000