function extractInfo$$1(img) {
    return __awaiter(this, void 0, void 0, function* () {
        // TODO: support several input images - we are already returning an array
        let name;
        let imgs;
        if (typeof img !== 'string') {
            imgs = [yield asInputFile(img)];
            name = imgs[0].name;
        }
        else {
            name = img;
            imgs = [];
        }
        const processedFiles = yield Call(imgs, ['convert', name, 'info.json']);
        try {
            return JSON.parse(yield blobToString(processedFiles[0].blob));
        }
        catch (ex) {
            return [{ error: ex }];
        }
    });
}
Execute `convert $IMG info.json` to extract image metadata. Returns the parsed info.json file contents
@param img could be a string in case you want to extract information about built in images like `rose:`