We’re trying Aspose.CAD to convert DXF files to JPEG images with .Net 6. It works great on windows and Ubuntu under windows (windows subsystem for linux) on our local dev environment but when we deploy our .Net 6 application to an amazon linux 2 test instance, the image output of save operation results in a cropped image.
So currently we are unable to fix this cropped / offset image generated by the Aspose.CAD on linux instance. Could you guys help us here on how to fix this?
- C# net6.0 application
- Aspose.CAD - version 22.2.0
- Amazon Linux 2 instance
We had some problems earlier with Aspose.Cad on Linux server and resolved them
- First we had a font issue :
Image export failed. Cannot find table ‘loca’ in the font file. at Aspose.CAD.Image.SaveInternal(Stream stream, ImageOptionsBase optionsBase)
We solved this by installing microsoft fonts on the system.
- Second we had a Drawing library issue.
Image export failed. The type initializer for ‘Gdip’ threw an exception. at Aspose.CAD.Image.SaveInternal(Stream stream, ImageOptionsBase optionsBase)
We solved this by installing libgdiplus.