Hello readers, in this blog I would like to introduce you with new features included in Aspose.Imaging 19.10 especially support for controlled memory optimization techniques for loading images using API. The best thing about the Aspose team is that it releases both .NET and Java-based APIs simultaneously every month. This way both API user remains recurrent with changes being made in APIs every month.
In the following sections, I am going to give you a glance at the features that have been included in API.
Load Images with Memory Optimization
At times there is a requirement to load huge images and you don’t have enough RAM available on the machine. In such cases, OutOfMemory exception is thrown on loading images. We have introduced the support for controlled memory specification in this new API. Now, you can have memory controlled limitation for loading image by specifying buffer size and it will guarantee that memory usage will be in those bounds. So, if you set memory optimization and your machine RAM memory is not enough, the image related operation will begin to work using hard drive. It will guarantee that operation will be performed in such a way without out of memory exception but it will take much time than using RAM. The controlled memory optimization techniques support has been provided for images like JPEG, CMX, and PNG.
The following examples demonstrate the use of memory optimization while loading the CMX images using API.
Memory Optimization in C#
Likewise, the following examples demonstrate the use of memory optimization while loading JPEG images using API.
Memory Optimization in Java
The similar Java-based implementation of loading CMX images is the following:
The similar Java-based implementation of memory optimization for JPEG images is the following:
Performance Improvements in API
As against previous API versions, we have tended to improve the API performance in many areas when performing different operations including:
- Rendering to PDF has been improved
- Issues related to SVG rendering have been addressed
Wait, there are many other features, enhancement, and bug fixes included in this release. Here you can get the detail!