Пример #1
0
 /**
  * {@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
 /**
  * {@inheritdoc}
  */
 public function getStream()
 {
     return StreamUtils::create($this->gmagick->getimagesblob());
 }