Open
Description
Hi,
How to create image variations?
I need create original, thumb and mobile variations. But today i can work only with the original image:
'on afterSave' => function ($event) {
/* @var $file File */
$file = $event->file;
$img = ImageManagerStatic::make($file->read())->resize(null, 600, function ($constraint) {
$constraint->aspectRatio();
});
$file->put($img->encode());
}
Metadata
Assignees
Labels
No labels