Devise
Class

Devise\Media\Images\Manager

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 $input)

Not sure what this is for.

string getImageUrl($input $input)

Image url for a given category and image

string cropAndSaveFile($input $input)

Crop and save an image

Details

at line 37
public __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
public array extractImagesForCallback($input $input)

Not sure what this is for.

Looks like it extracts images from a category path...

Parameters

$input $input

Return Value

array

at line 76
public string getImageUrl($input $input)

Image url for a given category and image

Parameters

$input $input

Return Value

string

at line 89
public string cropAndSaveFile($input $input)

Crop and save an image

Parameters

$input $input

Return Value

string