function buildInputFile(url, name = getFileName(url)) {
    return __awaiter(this, void 0, void 0, function* () {
        const fetchedSourceImage = yield fetch(url);
        const arrayBuffer = yield fetchedSourceImage.arrayBuffer();
        const content = new Uint8Array(arrayBuffer);
        return { name, content };
    });
}
Builds a new {@link MagickInputFile} by fetching the content of given url and optionally naming the file using given name
or extracting the file name from the url otherwise.