extends abstract class Phalcon\Image\Adapter
implements Phalcon\Image\AdapterInterface
Source on GitHub
Image manipulation support. Allows images to be resized, cropped, etc.
$image = new Phalcon\Image\Adapter\Imagick("upload/test.jpg");
$image->resize(200, 200)->rotate(90)->crop(100, 100);
if ($image->save()) {
echo 'success';
}
Methods
public static check ()
Checks if Imagick is enabled
public __construct (mixed $file, [mixed $width], [mixed $height])
\Phalcon\Image\Adapt