public static function newFromMemory(
        string $data,
        int $width,
        int $height,
        int $bands,
        string $format
    ): Image {
        Utils::debugLog('newFromMemory', [
            'instance' => null,
            'arguments' => [$data, $width, $height, $bands, $format]
        ]);

        $result = vips_image_new_from_memory($data, $width, $height, $bands, $format);
        if ($result === -1) {
            self::errorVips();
        }
        $result = self::wrapResult($result);

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

        return $result;
    }