public function saveFromString($image, $options = array())
    {
        if (isset($options['file'])) {
            if (false === @file_put_contents($options['file'], $image)) {
                throw new Exception\RuntimeException('could not save image');
            }
            return $options['file'];
        }
        return $image;
    }
public function saveFromString($image, $options = array())
    {
        if (isset($options['file'])) {
            if (false === @file_put_contents($options['file'], $image)) {
                throw new Exception\RuntimeException('could not save image');
            }
            return $options['file'];
        }
        return $image;
    }
public function saveFromString ( $ image , $ options = array ( ) ) { if ( isset ( $ options [ 'file' ] ) ) { if ( false === @ file_put_contents ( $ options [ 'file' ] , $ image ) ) { throw new Exception \ RuntimeException ( 'could not save image' ) ; } return $ options [ 'file' ] ; } return $ image ; }
Save image from string

@param string $image
@param array  $options
@return string
Save image from string