public function execute(Image $image) { $draw = new ImagickDraw(); if ($this->font) { $draw->setFont($this->font); } if ($this->color) { $draw->setFillColor($this->color); } if ($this->size) { $draw->setFontSize($this->size); } // $draw->annotation($this->getX(), $this->getY(), $this->text); $image->getObject()->annotateImage($draw, $this->getX(), $this->getY(), 0, $this->getText()); }
public function execute(Image $image) { $partObject = $this->partImage->getObject(); $image->getObject()->compositeImage($partObject, $partObject->getImageCompose(), $this->getX(), $this->getY()); }