Hi pro, I want to use Image Optimize. I read tutorial at https://cloudinary.com/blog/image_optimization_in_php I using Imagick but error with function: optimizeImageLayers(), setImageCompression(), setImageCompressionQuality() in Phalcon imagick error: Fatal error: Call to undefined method Phalcon\Image\Adapter\Imagick::optimizeImageLayers() in
$im = new \Phalcon\Image\Adapter\Imagick(APP_PATH . '/public/userfiles/goc.png');
// Optimize the image layers
$im->optimizeImageLayers();
// Compression and quality
$im->setImageCompression(Imagick::COMPRESSION_JPEG);
$im->setImageCompressionQuality(25);
// Write the image back
$im->writeImages(APP_PATH . '/public/userfiles/new.png', true);
$this->view->disable();