Hi,
i want to use Imagick, but not with phalcon adapter:
public function uploadAction(){
$croppedImage = $this->request->getPost('croppedImage', 'striptags');
$field = $this->request->getPost('field', 'striptags');
$data = explode( ',', $croppedImage);
$imageBlob = base64_decode($data[1]);
$imagick = new \Imagick();
$imagick->readImageBlob($imageBlob);
$imagick->setBackgroundColor(new ImagickPixel('transparent'));
header("Content-Type: image/*");
$imagick->writeImage('image.png');
$this->view->setRenderLevel(
View::LEVEL_ACTION_VIEW
);
}
i get an 500 error, but with pure PHP it is working for me.
For my frontend i use cropit: https://scottcheng.github.io/cropit/
Thx for help :-) Stefan