Convert VSD to SVG in Java - Some images are flipped and incorrect-color in the SVG

Hi Aspose team


We are working on the conversion from Visio vsd file to SVG format for cross-platform viewing.

We found a situation that there are some images in the result are flipped upside-down and some with different color from the original vsd file.

Here is our code for conversion test:

Diagram d = new Diagram(“custom/input/visio/WebSite.vsd”);
SVGSaveOptions saveOp = new SVGSaveOptions();

for (int i = 0; i < d.getPages().getCount(); i++) {
System.out.println(d.getPages().get(i).getName());
saveOp.setPageIndex(i);
d.save(new FileOutputStream(“custom/output/visio/WebSite.” + (i + 1)
+ “.svg”), saveOp);
}

Is there any option or method to fix the image problem?
I have uploaded a comparison image, the result, and the vsd file.
Please check the attachment and thanks for your help.

Best,
Craig

Hi Craig,


Thank you for contacting support. We managed to replicate the problem of flipped pictures with color differences. We have logged this issue under ticket ID DIAGRAMJAVA-50386 in our bug tracking system. Your post has also been linked to this ticket. We’ll keep you informed regarding any available updates. We’re sorry for the inconvenience caused.

@craig.w.su

We would like to share with you that your issue has been resolved in the hotfix Aspose.Diagram for Java 19.12.1.

The issues you have found earlier (filed as DIAGRAMJAVA-50386) have been fixed in Aspose.Diagram for Java 20.1.