I have a beginners question.. I've built a custom module. I want to use Imagick for image manipulation from within the controller.
Imagick is properly installed on my server and works like charm from a normal
In my Controller I have
When trying to use Imagick
$image = new Imagick($imageFname);
I get an error:
Fatal error: Uncaught Error: Class '\\Controller\Index\Imagick' not found.
Obviously it looks for Imagick in the wrong place because of the namespace, but I don't know how to solve it.