Exemplo n.º 1
0
 public function testSize()
 {
     $image = new Image(__DIR__ . '/../Resources/img/3.jpg');
     $this->assertEquals(3, $image->getWidth());
     $this->assertEquals(3, $image->getHeight());
 }
Exemplo n.º 2
0
 /**
  * @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);
 }