public function testSize() { $image = new Image(__DIR__ . '/../Resources/img/3.jpg'); $this->assertEquals(3, $image->getWidth()); $this->assertEquals(3, $image->getHeight()); }
/** * @param string $file * @param array $options * * @return mixed */ public function decode($file, array $options = []) { $image = new Image($file); $binary = $image->getBinaryString(); return $this->decodeMessage($binary, $options); }