Hello,
We have a license for Aspose Total .NET version 2021.11.0
Everything works well with .NET 8 on Windows. We use Aspose.Cell, Aspose.Words and Aspose.Slides.NET to add images in Office files.
When we run our application on Linux, it consumes a lot of RAM when manipulating images, then crashes.
Please let me know how we can use Aspose.Drawing instead of “System.Drawing.Common” with our Aspose version ( 2021.11.0).
To replace System.Drawing.Common with Aspose.Drawing in your .NET 8 application, you will need to follow these steps:
Install Aspose.Drawing: Since you are using Aspose.Total, it is recommended to install the specific Aspose components you need individually via NuGet. This can help reduce unnecessary resource consumption. You can install Aspose.Drawing by running the following command in your NuGet Package Manager Console:
Install-Package Aspose.Drawing
Alternatively, you can use the NuGet Package Manager GUI in Visual Studio to search for and install Aspose.Drawing.
Update Your Code: After installing Aspose.Drawing, you will need to update your code to use the classes and methods provided by Aspose.Drawing instead of those from System.Drawing.Common. This may involve changing namespaces and modifying how you handle image manipulation.
Testing on Linux: Since you mentioned that your application consumes a lot of RAM and crashes when manipulating images on Linux, ensure that you thoroughly test the application after making these changes. Monitor the memory usage to see if switching to Aspose.Drawing resolves the issue.
Documentation: For more detailed instructions on how to install and use Aspose.Drawing, you can refer to the official documentation here.
By following these steps, you should be able to successfully transition from System.Drawing.Common to Aspose.Drawing in your application. If you encounter any specific issues during the implementation, feel free to ask for further assistance.
Which Aspose (.NET) API causes this crash, which version?
Moreover, since you are using an older version of Aspose.Total for .NET (2021.11.0), so it might have compatibility issues with new .NET framework versions (e.g., .NET6.0, .NET7.0, .NET8.0, .NET9.0, etc.). Please note, newer versions of Aspose.Cells and Aspose.Words do use SkiaSharp for image manipulating and renderings on non-windows OS, see the document How to Run Aspose.Cells for .Net6|Documentation. Similarly for Aspose.Slides, we now provide Aspose.Slides.NET6.CrossPlatform API (you may get it from Nuget repos.) which can serve the purpose without having to depend on System.Drawing.Common on non-Windows platforms, see the document for your reference. Please upgrade to and try latest version of Aspose.Total for .NET APIs.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
Enables storage, such as cookies, related to analytics.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.