Free Support Forum - aspose.com

It take a long time to convert a dwg file to png with high resolution

I have some problems in converting DWG file to PNG file with aspose.cad 20.9.

I try to convert one part by part using CadVportTableObject.
if I set the pageHeight and pageWIdth 10000 or less than 10000 and the resolution 0.25, It will take a long time more than 60 minutes。

I need the resolution of the png more than 0.25. Because I want see the detail.Is there a relationship between the time it will take 、the resolution and the pageSize?

My computer:
64bit win10;Memory: 128G;CPU:intel Xeon 6230 @2.1GHZ * 2

The promgram、the dwg file and the log are here:
http://219.142.30.254:8728/ChinaCoalSafety/Question20201107.rar

@cuipz_coalinfo_net_cn

I have created an issue with ID CADNET-1244 in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be notified once the issue will be fixed.

The issues you have found earlier (filed as CADNET-1244) have been fixed in this update.

Do you have a plan to publish the Aspose.CAD for Java?
The Aspose.CAD for Java has the issues too。

@cuipz_coalinfo_net_cn

At present Aspose.CAD for Java 20.11 is latest version. We will share blogs and customer notifications as as soon as the concerned Java release will be published.

It reduces about 100 seconds from 240 seconds to 140 second on my computer. Is there any way to optimize?
Text rasterization quality with SDK 20.12 is as good as SDK 20.9.Question2021-02-08.zip (855.5 KB)

@cuipz_coalinfo_net_cn

We have improved the Image rendering performance. Also, in order to get the best rendering performance, please specify the following options:

Quality = new RasterizationQuality() { Hatch = RasterizationQualityValue.Low, Text = RasterizationQualityValue.Low}

The quality is not as good as before. Especially the font. The result is in zip above.

The rendering performance is not obvious. What does rasterization speed have to do with? The resolution、 the size of the dwg or the Graphics card?

@cuipz_coalinfo_net_cn

Can you please provide the source file, generated output and desired output quality that you like to achieve so that we can investigate it further on our end. Earlier, the issue added in thread was related to performance of the API in terms of rendering time.
Please also share the used sample code.

We want to convert the Huangling.dwg file to pngs with a high resolution, 0.25 meter per pixel or 0.125 meter per pixel。
The dwg file and the C# code is in zip.
链接:https://pan.baidu.com/s/1Ok0uyuWmxOxnhsUa_geqNw
提取码:x5tv
or
http://frc.tpddns.cn:1108/sharing/Cy8WJKjbp

@cuipz_coalinfo_net_cn

Can you please share on some other source as it is asking me to register first.

image.jpg (153.4 KB)

Please, try the second link http://frc.tpddns.cn:1108/sharing/Cy8WJKjbp.

@cuipz_coalinfo_net_cn

I regret to share that I am still unable to access the link shared by you.

image.png (68.7 KB)

I am sorry,the link is ok。
http://117.107.134.126:21704/DOM/2021-02-10.zip

@cuipz_coalinfo_net_cn
I regret to share that I am unable to access the shared link. I have tried multiple browsers. The shared link opens blank page for me. Can you please upload on Google drive or Dropbox and then provide the link to us.

image.png (82.3 KB)

http://117.107.134.126:21702/DOM/2021-02-10.zip
I was on the Spring Festical holiday, I am sorry replyed you later.
The link above is valid.

@cuipz_coalinfo_net_cn

I hope you must have enjoyed the holidays. Unfortunately, I have tried to access the file from your link a number of times but its always failing and extremely slow. Although, I am using an extremely good internet connection.
image.png (88.3 KB)

Thank you for your patience and continued support.
Google Drive Sharing link:

@cuipz_coalinfo_net_cn

I have created a ticket with ID CADNET-1340 in our issue tracking system to further investigate the issue on our end. This thread has been linked with the issue so that you may be notified once the issue will be fixed.