# functions.php

image resizing functions

Package
  \Default

## Tags

None found

## Functions

### getThumbnail()

    getThumbnail(\IZON\IO\Image|string  $sourceImage, array  $parameters = array()) : string

Return image url for source path or Image object

#### Parameters

\IZON\IO\Image|string | $sourceImage | source Image Object or path to image file with first "/" path_to_file
array | $parameters | parameters for resizing of image, supported settings: width => integer, height => integer, type => [cover|contain], default is contain, quality = number, default = 90 for example: ["width" => 1234, "height" => 1234, "type" => "contain"]

#### Returns

string

#

File
  functions.php

## Tags

package | Default

### getThumb()

    getThumb(\IZON\IO\Image|string  $sourceImage, array  $parameters = array()) : string

Only wrapper for getThumbnail, for more detail see there

#### Parameters

\IZON\IO\Image|string | $sourceImage | source Image Object or path to image file with first "/"
array | $parameters | parameters for resizing of image, supported settings: width => integer, height => integer, type => [cover|contain], default is contain, quality = number, default = 90, max is 100 - create image without any compression for example: ["width" => 1234, "height" => 1234, "type" => "contain"]

#### Returns

string

#

File
  functions.php

## Tags

package | Default

###