After an initial test, I observed the issue as you mentioned by using your sample code with your template file. I found that the output SVG image from the picture (in the worksheet) is blank/wrong. It looks like SVG uses embedded image by data:image/bmp;base64, but bmp is opaque as per its source.
e.g Sample code:
Workbook workbook = new Workbook(“C:/test2.xlsx”); Picture picture = workbook.getWorksheets().get(0).getPictures().get(0); ImageOrPrintOptions options = new ImageOrPrintOptions(); options.setSaveFormat(SaveFormat.SVG); picture.toImage(“pic.svg”, options);
I have logged a ticket with an id “CELLSJAVA-41741” for your issue. We will look into it soon.
Once we have any update on it, we will let you know here.