Ejemplo n.º 1
0
 /**
  * @param Image $image
  *
  * @return ImagickCollection
  */
 public function preProcess(Image $image) : ImagickCollection
 {
     $this->imagick->readImage($image->storageLocation());
     $this->imagick->setFilename($image->filename());
     $collection = new ImagickCollection([$this->imagick]);
     foreach ($this->transformers as $transformer) {
         $transformer->applyTo($collection);
     }
     return $collection;
 }
Ejemplo n.º 2
0
 /**
  * Sanity check filename method.
  */
 public function testFilename()
 {
     $this->image->filename = $this->generator()->anySlug();
     $this->assertSame($this->image->filename, $this->image->filename());
 }