ServiceImage
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)
at line 37
delete(string $file)
Deletes image file
at line 49
string
getFolder(string $folder)
Gets the images folder
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
at line 188
rotate($file, $degree, int $compression = 75)
Rotates the image