コード例 #1
0
ファイル: Image.php プロジェクト: luoshulin/falcon
 /**
  * {@inheritdoc}
  */
 public function get($format, array $options = array())
 {
     try {
         $options["format"] = $format;
         $this->prepareOutput($options);
     } catch (\GmagickException $e) {
         throw new RuntimeException('Get operation failed', $e->getCode(), $e);
     }
     return $this->gmagick->getimagesblob();
 }
コード例 #2
0
ファイル: Image.php プロジェクト: gravitymedia/magickly
 /**
  * {@inheritdoc}
  */
 public function getStream()
 {
     return StreamUtils::create($this->gmagick->getimagesblob());
 }