Free Support Forum - aspose.com

SVG export gradient

Hi



I am investigating possible API for converting Visio files to different formats and hence I am using an temp license.

We currently have an VBA which exports the files (Using Visio 2007).



But after creating the output, i noticed that the gradient “background” is wrong on the Aspose generated files. I am uncertain if this is an actual error in the aspose libraries, or if there is a setting i can set to get it to generate correctly.



I am not the one creating the visio files.



Using the following code produces almost the same result as the VBA code source included (path must be adjusted) but the gist of the code is:



var fi = new FileInfo();

var d = new Diagram();

d.Save(fi.Name.Replace(“vsd”, “svg”), SaveFileFormat.SVG);



Aspose.Diagram is installed through nuget and using version 6.6.0.



In the attachment I have included the visio file, and the output formats.



Files with double extension .vsd.pdf is the VBA versions, and hence the files with a single extension is the aspose generated.

Hi Dennis,

Thank you for contacting support. We managed to replicate the problem of not being able to preserve the original gradient pattern. We have logged investigations as below:

DIAGRAMNET-50927: The gradient color pattern of shape is changed on converting a VSD to PDF
DIAGRAMNET-50928: The gradient color pattern of shape is changed on converting a VSD to PNG
DIAGRAMNET-50929: The gradient color pattern of shape is changed on converting a VSD to SVG

Your post has also been linked to these tickets. We'll let you know once a significant progress has been made in this regard. We're sorry for the inconvenience caused.

Hi Dennis,


Thank you for being patient. We have a good news for you that the ticket id DIAGRAMNET-50928 has now been resolved. If there is no issue in the QA phase, then this fix will be incorporated in the next version 6.7.0 of Aspose.Diagram for .NET API. We’ll inform you via this forum thread as soon as the new release is published.

Hi Imran

Will that also fix the other output formats?

Hi Dennis,


Well, the fix of ticket id DIAGRAMNET-50928 will not cover other two formats. We’ve logged separate tickets (DIAGRAMNET-50927, DIAGRAMNET-50929) and will let you know about the any progress made in this regard.

That is great, thank you for your response.

Is your ticket system available to the public? or will I just have to wait to get a reponse in this thread?

Hi Dennis,


Thank you for the inquiry. No, you’ll be notified in this forum thread once the bug is fixed. We’ve also linked your forum thread to this ticket for auto notification purposes. Furthermore, you can also ask about an update later.

Hi Dennis,


Thank you for being patient. In reference to the ticket id DIAGRAMNET-50928, please download and use the latest Hotfix version: Aspose.Diagram for .NET 6.6.1.0. Please also let us know how that goes on your side.

It works great. Thanks

Now any deadline on the SVG and PNG parts?

I just saw that the Gif versions is very dithered, anything i can do about that ?
A SVG generated now has a solid black background.
Hi Dennis,

Thank you for the details.
hellagutmanndk:
I just saw that the Gif versions is very dithered, anything i can do about that ?
We have logged an enhancement ticket to improve the output GIF quality in our issue tracking system as DIAGRAMNET-50944. We'll let you know once it is fixed. We're sorry for the inconvenience caused.
hellagutmanndk:
A SVG generated now has a solid black background.
We have already logged a ticket id DIAGRAMNET-50929 in our issue tracking system. We'll notify you once it is fixed.

I just wanted you to know because the background has changed between 6.6.0 and 6.6.1 (the hotfix)

In 6.6.0 the background was gradient but just from left to right.
In 6.6.1 the background is all black now.

Hi Dennis,


Our product team is working over the ticket id DIAGRAMNET-50929, we’ve shared your concerns with the team. They will surely consider investigating your reported issue as per their schedule. We’ll update you as soon as we get a feedback.

The issues you have found earlier (filed as DIAGRAMNET-50928) have been fixed in Aspose.Diagram for .NET 6.7.0.


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

I am still seeing this similar issue in the latest version of Apsose Diagram for Java. Has this been fixed? Gradients are still not working.

@bass_rock,
The linked ticket ID DIAGRAMNET-50929 is about the incorrect gradient color pattern while exporting a VSD to SVG and it is not resolved yet. We would recommend you kindly send us the complete details of your use case, including source drawing and code. We will investigate and share our findings with you.

Best Regards,
Imran Rafique

@bass_rock,

The linked ticket ID DIAGRAMNET-50929 has been resolved and will be included in next version 18.5 of Aspose.Diagram for .NET API. We will notify you once the next version is published.

The issues you have found earlier (filed as DIAGRAMNET-50927,DIAGRAMNET-50929) have been fixed in Aspose.Diagram for .NET 18.5. This message was posted using BugNotificationTool from Downloads module by imran.rafique

Hi

I can’t seem to find a download link for the files attached to the original post. I am revisiting this subject and need to check that this is acceptable. Where are they?

Found another issue (but will log it on a new ticket)

@hellagutmanndk,

We have sent you the input VSD drawing in a private message.

Sure, please create another thread, and post all details of the scenario, including source documents and code.