# Class Opencart\System\Library\Image

Class Image

Located at system\library\image.php

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

OpenCart API API documentation generated by ApiGen dev-master