Class Image
Methods | ||
---|---|---|
public
|
__construct(string $file)
|
# |
public
|
getFile(): string
|
# |
public
|
getImage(): mixed
|
# |
public
|
getWidth(): int
|
# |
public
|
getHeight(): int
|
# |
public
|
getBits(): string
|
# |
public
|
getMime(): string
|
# |
public
|
save(string $file, int $quality = 90): void
|
# |
public
|
resize(int $width = 0, int $height = 0, string $default = ''): void
|
# |
public
|
watermark(self $watermark, string $position = 'bottomright'): void
|
# |
public
|
crop(int $top_x, int $top_y, int $bottom_x, int $bottom_y): void
|
# |
public
|
rotate(int $degree, string $color = 'FFFFFF'): void
|
# |