Free Support Forum - aspose.com

Gif in worksheet wrong

Workbook wb = new Workbook("C:/C.xlsx");
HtmlSaveOptions options = new HtmlSaveOptions();
options.setExportActiveWorksheetOnly(true);

options.setHiddenColDisplayType(HtmlHiddenColDisplayType.HIDDEN);
options.setHiddenRowDisplayType(HtmlHiddenRowDisplayType.HIDDEN);

ImageOrPrintOptions imgOptions = options.getImageOptions();

imgOptions.setImageFormat(ImageFormat.getPng());
wb.save("C:/C1.html", options);

imgOptions.setSaveFormat(SaveFormat.SVG);
imgOptions.setImageFormat(ImageFormat.getIcon());

wb.save("C:/C2.html", options);



C1 work fine, and C2 wrong.

I hope aspose generate svg with gif embedded:

That change
<image xlink:href="data:image/png;base64,</div><div><br></div><div>to </div><div><div><image xlink:href="data:image/gif;base64,

Hi,


Thanks for your posting and using Aspose.Cells.

We have tested your sample code with the latest version: Aspose.Cells for Java 16.11.0 and found the issue. The Gif in C2.html is not working while it is working fine in C1.html. It means, SVG containing Gif is not working.

We have logged this issue in our database for investigation. We will look into it and fix this issue. Once the issue is resolved or we have some other update for you, we will let you know asap.

This issue has been logged as

  • CELLSJAVA-42068 - Gif in worksheet is wrong when workbook is converted into Html

@xhaixia,
This is to inform you that we have fixed your issue (logged earlier as “CELLSJAVA-42068”) now. We will soon provide you the fixed version after performing QA and incorporating other enhancements and fixes.

@xhaixia,

Please try our latest version/fix: Aspose.Cells for Java v20.2.2 (attached).

Your issue should be fixed in it.

Let us know your feedback.
Aspose_Cells_Java_v20.2.2.zip (6.7 MB)

The issues you have found earlier (filed as CELLSJAVA-42068) have been fixed in Aspose.Cells for Java v20.3. This message was posted using Bugs notification tool by ahsaniqbalsidiqui