Error converting DWG to JPEG (.NET)

Hi,

I need to convert some DWG file to JPEG. There is a file that throws the following error “Image saving failed.”, inner exception “Input string was not in a correct format.”. My code is:

using (var image = Image.Load(file.FullPath))
{
    image.Save(outputFile, new JpegOptions());
}

Hereby the file giving this error: 00021106.zip (1.9 MB)

Kind regards,
Cristi

@cristianacanthis,

I have worked with the DWG file shared and have been able to observe the issue. An issue with ID CADNET-978 has been created 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 automatically notified once the issue will be fixed.

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