ImageRenderer
Less than 1 minute
ImageRenderer
Define the contract for image renderer interface.
interface ImageRendererMethods
load
Execute the load operation for this file component.
public load(string $bytes, string $type): intParameters
| Parameter | Type | Description |
|---|---|---|
$bytes | string | |
$type | string |
loaded
Execute the loaded operation for this file component.
public loaded(): boolread
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 |
Generated by Hazaar API Doc Generator on Tue, 21 Apr 2026 04:00:24 +0000