Converting DWG to JPEG : Image is distorted

Hi.

I encounter this problem when I converted a DWG file to JPEG file, the resulting image is distorted.
I suspect the setting of rasterization options for its pageWidth and pageHeight.
But I am not sure.

Can you check the attached file? (Could it be Aspose issue)
blocks_and_tables_-_metric.zip (208.1 KB)

The distorted output is this file.
distortedOutput.zip (432.8 KB)

Below is the code I used:
convertDwgToJpeg.zip (790 Bytes)

Thank you.

@franciss

Can you please share which output belongs to Aspose.CAD and what is difference between expected and obtained output.

hi,

In the zipped file, the disorted output is the file named ISO A1_out_.jpg
It was converted using Aspose.
Here it is --> distortedByAspose.zip (290.6 KB)

The expected output should be this. --> expected_output.zip (1.6 MB)

@franciss

I have created an issue with ID CADJAVA-10153 to further investigate this on our end after reproducing on my end. This thread has been linked with the issue so that you may be notified once the issue will be fixed.

1 Like