public load(string $bytes, string $type): int
Parameter | Type | Description |
---|
$bytes | string | |
$type | string | |
public quality(?int $quality): int
Parameter | Type | Description |
---|
$quality | int | |
public compress(int $quality): void
Parameter | Type | Description |
---|
$quality | int | |
public resize(?int $width, ?int $height, bool $crop = false, ?string $align, bool $keep_aspect = true, bool $reduce_only = true, ?float $ratio, int $offsetTop = 0, int $offsetLeft = 0): bool
Parameter | Type | Description |
---|
$width | int | |
$height | int | |
$crop | bool | |
$align | string | |
$keep_aspect | bool | |
$reduce_only | bool | |
$ratio | float | |
$offsetTop | int | |
$offsetLeft | int | |
public expand(?int $xwidth, ?int $xheight, string $align = 'topleft', int $offsetTop = 0, int $offsetLeft = 0): bool
Parameter | Type | Description |
---|
$xwidth | int | |
$xheight | int | |
$align | string | |
$offsetTop | int | |
$offsetLeft | int | |
Generated by Hazaar API Doc Generator