I try to call Phalcon\Image\Adapter\GD from Dependency Injector, but it not working
$di->set('image', function() { // create an image manager instance with favored driver $image = new Phalcon\Image\Adapter\GD(); return $image; });
calling DI
$this->image('path/image.jpg')->resize(200,200)->save();
get error