# \IZON\ThumberThumber

Slouzi k vygenerovani a vraceni nahledu obrazku

## Summary

Methods
Properties
Constants
__construct()
getImageURL()
getImageObject()
No public properties found
VIEW_NAME
AVAILABLE_AS
No protected methods found
$thumberService
N/A
No private methods found
No private properties found
N/A

File
  Thumber.php
Package
  Default
Class hierarchy
  \IZON\Thumber\Thumber

## Tags

None found

## Constants

### VIEW_NAME

    VIEW_NAME

#

#### Deprecated

## Tags

None found

### AVAILABLE_AS

    AVAILABLE_AS

#

## Tags

None found

## Properties

### $thumberService

    $thumberService : \IZON\Thumber\Services\ThumbnailService

#### Type

\IZON\Thumber\Services\ThumbnailService

#

## Tags

None found

## Methods

### __construct()

    __construct(  $thumberService)

#### Parameters

| $thumberService |

#

## Tags

None found

### getImageURL()

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

vraci url na ktrem se da stahnout resizovany obrazek

#### Parameters

\IZON\IO\Image|string | $sourceImage | zdrojovy obrazek nebo cesta k nemu
array | $parameters | parametry pro resizovani width = cislo, heigth = cislo, type type = ["contain": vleze se do, "cover": da se pokryt] default je contain, quality = number, default = 90 napr. ["width" => 1234], ["width" => 1234, "type" => "contain"]

#### Returns

string

#

## Tags

None found

### getImageObject()

    getImageObject(string  $src) : \IZON\IO\Image

Returns Image object for src

#### Parameters

string | $src | relative path to file with first /

#### Throws

\Exception

#### Returns

\IZON\IO\Image

#

## Tags

None found

### Thumber.php