Example #1
0
 /**
  * Thumbnails the image A 0 will keep proportions
  *
  * @param int $x
  * @param int $y
  *
  * @return Imagick
  */
 public function thumb($x, $y)
 {
     $this->image->thumbnailImage($x, $y);
     $this->operations[] = 'thumb' . $x . $y;
     return $this;
 }
 /**
  * @param string $fileName
  * @param string $filterName
  *
  * @return string
  *
  * @throws FilterNotFoundException
  * @throws OperationNotPermittedException
  */
 public function filter($fileName, $filterName)
 {
     return $this->imagick->processFilter($fileName, $filterName);
 }