Picture to SVG wrong

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);



pic.svg is blank in browser, and svg use embbeded image by data:image/bmp;base64, but bmp is opaque.

Hi,


Thanks for the template file and sample code.

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.

Thank you.

Hi,

Thanks for using Aspose.Cells.

Please download and try the latest fix: Aspose.Cells for Java v8.7.0.4 and let us know your feedback.

The issues you have found earlier (filed as CELLSJAVA-41741) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.