\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

Constants

VIEW_NAME

VIEW_NAME

AVAILABLE_AS

AVAILABLE_AS

Properties

$thumberService

$thumberService : \IZON\Thumber\Services\ThumbnailService

Type

\IZON\Thumber\Services\ThumbnailService

Methods

__construct()

__construct(  $thumberService) 

Parameters

$thumberService

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

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