Hello. How can I use Imagick with images upload?
At the moment I upload images like this.
//...
if ($this->request->hasFiles())
$photo = $this->request->getUploadedFiles()[0];
if (!$photo->getError()) {
$photo->moveTo('images/image.webp');
}
}
//...
Where it's more correct to use Imagick in this code?