Back to Opencart

Class Opencart\System\Library\Image

docs/api/Opencart.System.Library.Image.html

4.1.0.34.1 KB
Original Source

Namespaces

Classes

Class Opencart[System](http://localhost\opencart-master/docs/api/namespace-Opencart.System.html)\[Library](http://localhost\opencart-master/docs/api/namespace-Opencart.System.Library.html)\[Image](http://localhost\opencart-master/docs/api/Opencart.System.Library.Image.html)

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