function buildImageSrc$$1(image, forceBrowserSupport = false) {
    return __awaiter(this, void 0, void 0, function* () {
        let img = image;
        const extension = getFileNameExtension(image.name);
        if (!extension || forceBrowserSupport && browserSupportedImageExtensions.indexOf(extension) === -1) {
            const { outputFiles } = yield execute$$1({ inputFiles: [yield asInputFile(image)], commands: `convert ${image.name} output.png` });
            outputFiles[0].name = image.name;
            img = outputFiles[0];
        }
        const outputFile = yield asOutputFile(img);
        return URL.createObjectURL(outputFile.blob);
    });
}
Return a string with the inline image content, suitable to be used to assign to an html img src attribute. See {@link loadImageElement}.
@param forceBrowserSupport if true and the image extension is not supported by browsers, it will convert the image to png
and return that src so it can be shown in browsers