# \IZON\Thumber\ImageConverterIImageConverter

Converts image into specified format.

## Summary

Methods
Constants
setSize()
setQuality()
setFormat()
convert()
crop()
EXTENSION_WEBP
No protected methods found
N/A
No private methods found
N/A

File
  ImageConverter/IImageConverter.php
Package
  \Default

## Tags

author | Aleš Kopecký kopecky@izon.cz

## Constants

### EXTENSION_WEBP

    EXTENSION_WEBP

#

## Tags

None found

## Methods

### setSize()

    setSize(\IZON\Thumber\Image\IImageSize  $imageSize) : \IZON\Thumber\ImageConverter\IImageConverter

Sets ImageSize object.

#### Parameters

\IZON\Thumber\Image\IImageSize | $imageSize | Image size object containing image size info.

#### Returns

\IZON\Thumber\ImageConverter\IImageConverter

#

## Tags

None found

### setQuality()

    setQuality(integer  $quality) : \IZON\Thumber\ImageConverter\IImageConverter

Sets quality.

#### Parameters

integer | $quality |

#### Returns

\IZON\Thumber\ImageConverter\IImageConverter

#

## Tags

None found

### setFormat()

    setFormat(string  $format) : \IZON\Thumber\ImageConverter\IImageConverter

Sets format.

#### Parameters

string | $format | Use constants of IImageConverter interface.

#### Returns

\IZON\Thumber\ImageConverter\IImageConverter

#

## Tags

None found

### convert()

    convert(string  $filename) : \IZON\IO\Image

#### Parameters

string | $filename |

#### Returns

\IZON\IO\Image

#

## Tags

None found

### crop()

    crop(\IZON\Thumber\Image\IImageSize  $size, \IZON\Thumber\Image\IImagePoint  $point) : \IZON\Thumber\ImageConverter\IImageConverter

#### Parameters

\IZON\Thumber\Image\IImageSize | $size |
\IZON\Thumber\Image\IImagePoint | $point |

#### Returns

\IZON\Thumber\ImageConverter\IImageConverter

#

## Tags

None found

### IImageConverter.php