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); }
public function testPictureReaderReadsResultImage() { $image = PictureReader::readResultImage("3z9ek2FZVBgocwwsv0egQRadieEaqRgA6MMhlDqNlpAtllamkpVrkVEw1r1F.png"); $this->assertInstanceOf(Intervention\Image\Image::class, $image); }
public function getTemplateImage() { return PictureReader::readTemplate($this->getTemplateImageFilename()); }
public function getImage() { return PictureReader::readResultImage($this->getFileName()); }