Convert Visio Diagrams to PNG using Aspose.Diagram for .NET - output images are not correct

Hi Aspose,
Currently we are using Aspose.Diagram 18.10 and we wanted to upgrade to 19.11. If we replace this dll, some images do not render correctly.

Problem 1 :
Input Visio: Extra Image shown_Old.zip (88.3 KB)

Output Image:
Version 18.10 : Extra Image shown_Old.PNG (17.9 KB)

Version 19.11 : Extra Image shown_New.PNG (21.3 KB)

Problem 2 :
Input Visio: Extra Space shown_Old.zip (76.1 KB)

Output Image:
Version 18.10 : Extra Space shown_Old.PNG (3.3 KB)

Version 19.11 : Extra Space shown and Question mark icon_New.PNG (7.0 KB)

Problem 3 :
Input Visio: Icon Position changing_Old.zip (41.6 KB)

Output Image:
Version 18.10 : Icon Position changing_Old.PNG (1.4 KB)

Version 19.11 : Icon Position changing_New.PNG (1.4 KB)

Problem 4 :
Input Visio: Question Mark Icon position change_Old.zip (44.1 KB)

Output Image:
Version 18.10 : Question Mark Icon position change_Old.PNG (4.8 KB)

Version 19.11 : Question Mark Icon position change_New.PNG (4.8 KB)
Sample Code:

string strInputPath = @"C:\vj\2019\Visio Issues\Old";
			string strOutputPath = @"C:\vj\2019\Visio Issues\New\";

			string[] files = Directory.GetFiles(strInputPath, "*.vsdx");

			foreach(string strFile in files)
			{
				Diagram vdxDiagram = new Diagram(strFile);
				ImageSaveOptions opt = new ImageSaveOptions(SaveFileFormat.PNG)
				{
					SmoothingMode = SmoothingMode.HighQuality,
					CompositingQuality = CompositingQuality.HighQuality,
					InterpolationMode = InterpolationMode.HighQualityBicubic,
					PixelOffsetMode = PixelOffsetMode.HighQuality
				};
				vdxDiagram.Save(strOutputPath + Path.GetFileNameWithoutExtension(strFile) + ".PNG", opt);
			}

We are waiting for your reply and support.

Thanks.

@msindia

Would you kindly share the sample code snippet that you are using for conversion? We will test the scenario in our environment and address it accordingly.

@asad.ali,
we have updated the question with sample code.

Thanks…

@msindia

We were able to reproduce the issues in our environment while using Aspose.Diagram for .NET 20.1 and logged them as following:

  • DIAGRAMNET-51751
  • DIAGRAMNET-51752
  • DIAGRAMNET-51753
  • DIAGRAMNET-51754

We will surely look into details of these issues and keep you posted with the status of their correction. Please be patient and spare us little time.

We are sorry for the inconvenience.

@asad.ali,

While convert Visio to Png. Some info destroyed.
Input: Missing Info.zip (29.6 KB)

Output:Missing Info.PNG (1.8 KB)

We are waiting for your reply and support.

Thanks.

@msindia

Thanks for contacting support.

The issue has been logged in our issue tracking system as DIAGRAMNET-51763. We will surely look into details of it and keep you posted with the status of its correction. Please spare us little time.

We are sorry for the inconvenience.

@asad.ali,
Thanks for your Aspose Diagram 20.2.0.0.

The tickets **’ **DIAGRAMNET-51751 , DIAGRAMNET-51752 and DIAGRAMNET-51763 are solved.

These tickets are still issue DIAGRAMNET-51753 , DIAGRAMNET-51754** ’. please help us
We are waiting for your reply and support.

Thanks.

@msindia

We will surely look into these tickets and let you know about additional updates as soon as we have some. We are sorry for the inconvenience.

The issues you have found earlier (filed as DIAGRAMNET-51751,DIAGRAMNET-51752,DIAGRAMNET-51763) have been fixed in Aspose.Diagram for .NET 20.2.

@msindia

We again checked these issues with the latest version of the API and were unable to notice them anymore. Would you kindly share the generated outputs on your side?

@asad.ali,

We have tried with our original file. It has issue. But we tried with the above given file (What we attached last time - problem 3 and 4 files), t’s works fine.
we have attached our original file.

Problem 1: Icon position
Input: IconPosition.zip (37.9 KB)
Output: IconPosition.PNG (1.9 KB)

Problem 2: Question mark
Input : Question Mark Position.zip (38.8 KB)

Output: Question Mark Position.PNG (5.6 KB)

We have more than 10 files like the above issues.

We waiting for your reply.

Thanks.

@asad.ali,

We have Visio with excel workbook object. While convert PNG format, it’s shown some blur in the content.

Input: Layers.zip (22.7 KB) Output: Layers.PNG (1002 Bytes)

We are waiting for your reply.

Thanks.

@msindia

Thanks for your feedback.

Since the issues DIAGRAMNET-51753, DIAGRAMNET-51754 were resolved in 20.2 version of the API, related tickets have been closed now. However, we have generated new tickets as follows for your other files:

  • DIAGRAMNET-51769
  • DIAGRAMNET-51770
  • DIAGRAMNET-51771

We will surely look into details of recently logged issues and keep you posted with the status of their correction. Please spare us some time.

We are sorry for the inconvenience.

Please share all those files so that they can be investigation and related issues can be resolved.

1 Like

@asad.ali

We have attached 3 more images. We need general solution for all diagram.
we are using Aspose.Diagram 18.10, it works all images are fine.
But we upgrade to Aspose.Diagram 20.2.0.0

We are waiting for your support.
Input: Issue _Question Mark and Plus.zip (273.5 KB)

Thanks.

@msindia

We were unable to find any file with your post. Would you please make sure to upload them again.

@asad.ali,

We have attached the files. check above reply.

We have attached 3 more images. We need general solution for all diagram.
we are using Aspose.Diagram 18.10, it works all images are fine.
But we upgrade to Aspose.Diagram 20.2.0.0

We are waiting for your support.
Input: Issue _Question Mark and Plus.zip (273.5 KB)

Thanks.

@msindia

Three separate issues have been created for your files in our management system as following:

  • DIAGRAMNET-51775 - Question mark issue
  • DIAGRAMNET-51776 - Question mark issue
  • DIAGRAMNET-51777 - Plus Icon issue

We will let you know as soon as these are resolved. Please spare us some time.

We are sorry for the inconvenience.

@asad.ali ,

While convert Visio to Png. Some icons position changed.
Input: Icon pos.zip (15.8 KB)
Output: Icon pos.PNG (4.6 KB)

We have more files like the above issues. (We need general solution for these type of issues)

We are waiting for your reply and support.

Thanks.

@msindia

We have logged an issue as DIAGRAMNET-51787 in our issue tracking system for it. We will surely inform you as soon as it is resolved. Please spare us some time.

We are sorry for the inconvenience.

@msindia

We would like to share with you that earlier logged issues (DIAGRAMNET-51769, DIAGRAMNET-51770) has been resolved in hotfix Aspose.Diagram for .NET 20.2.1.