class ServiceImage implements ServiceImageInterface

Services related to ServiceImageInterface

Properties

private ContainerInterface $container Stores Container

Methods

__construct(ContainerInterface $container)

No description

delete(string $file)

Deletes image file

string
getFolder(string $folder)

Gets the images folder

bool
resize($file, string $folder, string $filename, string $format = 'jpg', int $finalHeight = 400, int $compression = 75, bool $square = false, $stamp = null)

Resizes image

rotate($file, $degree, int $compression = 75)

Rotates the image

Details

at line 29
__construct(ContainerInterface $container)

Parameters

ContainerInterface $container

at line 37
delete(string $file)

Deletes image file

Parameters

string $file

at line 49
string getFolder(string $folder)

Gets the images folder

Parameters

string $folder

Return Value

string

at line 66
bool resize($file, string $folder, string $filename, string $format = 'jpg', int $finalHeight = 400, int $compression = 75, bool $square = false, $stamp = null)

Resizes image

Parameters

$file
string $folder
string $filename
string $format
int $finalHeight
int $compression
bool $square
$stamp

Return Value

bool

at line 188
rotate($file, $degree, int $compression = 75)

Rotates the image

Parameters

$file
$degree
int $compression