class Manager

Class Manager takes care of image management. This lets us get a list of images and also crop and resize images

Methods

__construct(Filesystem $Filesystem, CategoryPaths $CategoryPaths, Images $Images, Repository $Config = null)

Construct a new image manager

array
extractImagesForCallback($input)

Not sure what this is for. Looks like it extracts images from a category path.

string
getImageUrl($input)

Image url for a given category and image

string
cropAndSaveFile($input)

Crop and save an image

Details

at line 37
__construct(Filesystem $Filesystem, CategoryPaths $CategoryPaths, Images $Images, Repository $Config = null)

Construct a new image manager

Parameters

Filesystem $Filesystem
CategoryPaths $CategoryPaths
Images $Images
Repository $Config

at line 52
array extractImagesForCallback($input)

Not sure what this is for. Looks like it extracts images from a category path.

..

Parameters

$input

Return Value

array

at line 76
string getImageUrl($input)

Image url for a given category and image

Parameters

$input

Return Value

string

at line 89
string cropAndSaveFile($input)

Crop and save an image

Parameters

$input

Return Value

string