I am trying to work with images in Excel js but it doesn't work. This is the snippet of code
const workbook = new Excel.Workbook();
const worksheet = workbook.addWorksheet("My Sheet");
const myBase64Image = "data:image/png;base64,iVyZgg==";
const imageId2 = workbook.addImage({
base64: myBase64Image,
extension: 'png',
});
worksheet.addImage(imageId2, {
tl: { col: 50, row: 50 },
ext: { width: 500, height: 200 }
});