public static function newFromBuffer(
        string $buffer,
        string $option_string = '',
        array $options = []
    ): Image {
        Utils::debugLog('newFromBuffer', [
            'instance' => null,
            'arguments' => [$buffer, $option_string, $options]
        ]);

        $options = self::unwrap($options);
        $result = vips_image_new_from_buffer($buffer, $option_string, $options);
        self::errorIsArray($result);
        $result = self::wrapResult($result);

        Utils::debugLog('newFromBuffer', ['result' => $result]);

        return $result;
    }
public static function newFromBuffer(
        string $buffer,
        string $option_string = '',
        array $options = []
    ): Image {
        Utils::debugLog('newFromBuffer', [
            'instance' => null,
            'arguments' => [$buffer, $option_string, $options]
        ]);

        $options = self::unwrap($options);
        $result = vips_image_new_from_buffer($buffer, $option_string, $options);
        self::errorIsArray($result);
        $result = self::wrapResult($result);

        Utils::debugLog('newFromBuffer', ['result' => $result]);

        return $result;
    }
public static function newFromBuffer ( string $ buffer , string $ option_string = '' , array $ options = [ ] ) : Image { Utils :: debugLog ( 'newFromBuffer' , [ 'instance' => null , 'arguments' => [ $ buffer , $ option_string , $ options ] ] ) ; $ options = self :: unwrap ( $ options ) ; $ result = vips_image_new_from_buffer ( $ buffer , $ option_string , $ options ) ; self :: errorIsArray ( $ result ) ; $ result = self :: wrapResult ( $ result ) ; Utils :: debugLog ( 'newFromBuffer' , [ 'result' => $ result ] ) ; return $ result ; }
Create a new Image from a compressed image held as a string.

@param string $buffer        The formatted image to open.
@param string $option_string Any text-style options to pass to the
selected loader.
@param array  $options       Any options to pass on to the load operation.

@throws Exception

@return Image A new Image.
Create a new Image from a compressed image held as a string .