protected ImageObject $file
public __construct(string $filename, ?int $quality, ?Manager $manager): void
Parameter | Type | Description |
---|
$filename | string | |
$quality | int | |
$manager | Manager | |
public load(string $file, ?Manager $manager): bool
Parameter | Type | Description |
---|
$file | string | |
$manager | Manager | |
public setFormat(string $format): void
Parameter | Type | Description |
---|
$format | string | |
public quality(?int $quality): ?int
Parameter | Type | Description |
---|
$quality | int | |
public encodeDataStream(): void
public getContent(): string
public fileExists(): bool
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 $width, ?int $height, string $align = 'topleft', int $offsettop = 0, int $offsetleft = 0): bool
Parameter | Type | Description |
---|
$width | int | |
$height | int | |
$align | string | |
$offsettop | int | |
$offsetleft | int | |
Generated by Hazaar API Doc Generator