We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Image quality in HTML

I found that some images has poor quality when we save as HTML. Here is a sample project:
TestApp.zip (184.6 KB)

Steps to reproduce:

  1. Open project in VS
  2. Set a destination path and press the button
  3. In destination folder you will find html representation of a Visio file.

Here is a quality of the image (text) when we use Visio to save as html:
image.png (1.0 KB)

and here is when we use Aspose Diagram:
image.png (399 Bytes)

If you need more info, please let me know.

@mmdevelopment

We have logged this issue as DIAGRAMNET-52858 in our issue tracking system for the sake of further investigation. We will look into its details and keep you posted with the status of its correction. Please be patient and spare us some time.

We are sorry for the inconvenience.

The issues you have found earlier (filed as DIAGRAMNET-52858) have been fixed in this update. This message was posted using Bugs notification tool by philip.zhou

I have tested v22.6 and from my point of view the problem still exists. Quality of texts still are much worst comparing to Visio App. To reproduce the problem, you can still use TestApp I added to this post.
Should I set any specific option to have a good image quality?

If you need more info, please let me know.

@mmdevelopment

Now we added a Resolution setting in HTMLSaveOptions class. In this situation, we can set a bigger Resolution than the default value 96 to get more clear image by using “saveOption.Resolution = 192;”

I have set Resolution to 192 but I don’t see any difference. I also set higher value (692) but still no effect. Both images (with and without Resolution) are identical.

@mmdevelopment

We apologize for the inconvenience. Would you kindly share the generated images for our reference as well? We will reopen the ticket and proceed accordingly.

Here are files:
images.zip (118.2 KB)

Here is entire html file generated with Resolution 492:
html_with_image_resolution_492.zip (40.7 KB)

Basically this text looks bad:
image.png (2.2 KB)

When I generate html using Visio Application, then it is much better.
Html from Visio App.zip (85.3 KB)

@mmdevelopment

We have reopened the ticket for further investigation. We will soon inform you once we complete its investigation against recently provided information by you. Please spare us some time.

We are sorry for the inconvenience.

@mmdevelopment
I am very sorry. I modify and test the Diagram.Save method, but neglect the Shape.ToHTML method. So you can use Diagram.Save temporarily, and we will update Shape.ToHTML method in next release. Thank you for using our product and sorry for the inconvenience again.