Example #1
0
 public function testPictureWriterWritesTemplateImage()
 {
     $imageToSave = Image::make("./tests/FaceInserterTestData/result.png");
     PictureWriter::saveTemplateImage("filename.png", $imageToSave);
     $retrievedImage = PictureReader::readTemplate("filename.png");
     $this->assertInstanceOf(\Intervention\Image\Image::class, $retrievedImage);
 }
Example #2
0
 public function getTemplateImage()
 {
     return PictureReader::readTemplate($this->getTemplateImageFilename());
 }
Example #3
0
 public function testPictureReaderReadsTemplateImage()
 {
     $image = PictureReader::readTemplate("real_template.png");
     $this->assertInstanceOf(Intervention\Image\Image::class, $image);
 }