interface ServiceImageInterface

Interface to be called for DI for ServiceImageInterface related services

Methods

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)

Rotates the image

Details

at line 22
delete(string $file)

Deletes image file

Parameters

string $file

at line 28
string getFolder(string $folder)

Gets the images folder

Parameters

string $folder

Return Value

string

at line 34
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 39
rotate($file, $degree)

Rotates the image

Parameters

$file
$degree