\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
No protected properties found
N/A
No private methods found
No private properties found
N/A

Constants

VIEW_NAME

VIEW_NAME = _thumber

AVAILABLE_AS

AVAILABLE_AS = _thumber

Methods

__construct()

__construct( thumberService) : 

Parameters

thumberService

Returns

getImageURL()

getImageURL(\IZON\Thumber\Image|string  sourceImage, mixed||string|int  parameters = []) : 

vraci url na ktrem se da stahnout resizovany obrazek

Parameters

\IZON\Thumber\Image|string sourceImage

zdrojovy obrazek nebo cesta k nemu

mixed||string|int 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

getImageObject()

getImageObject(  src) : \IZON\Thumber\Image

Returns Image object for src

Parameters

src

relative path to file with first /

Throws

\Exception

Returns

\IZON\Thumber\Image —