The DLLs-only package of Aspose.PSD for .NET 24.3 introduces new feature enhancements and bug fixes to upgrade your C# PSD and AI image processing applications.
Faster AI Image Loading
This release of the .NET PSD API helps you with the issues related to loading larger Adobe Illustrator (.AI) files within your C# apps. You can now experience quicker loading times for large, multi-page AI files.
Supercharged 8-bit to 16/32-bit Depth Conversion
Aspose.PSD for .NET now supports optimized conversion of PSD files from 8-bit depth to 16-bit or 32-bit depth. The following code sample showcases converting a PSD file from 8-bit to 16-bit in C#:
string sourceFile = Path.Combine(baseFolder, "test_smart_layer.psd");
string outputFile = Path.Combine(outputFolder, "export.psd");
using (var psdImage8 = (PsdImage)Image.Load(sourceFile))
{
var psdOptions16 = new PsdOptions()
{
ChannelBitsCount = 16
};
psdImage8.Save(outputFile, psdOptions16);
}
using (var psdImage16 = (PsdImage)Image.Load(outputFile))
{
if (psdImage16.GlobalLayerResources[0] is Lr16Resource)
{
// is ok
}
else
{
throw new Exception("Wrong global resource, the first resource should be Lr16Resource");
}
}
Source*
And this C# code example highlights how to convert a 16-bit PSD file to a 32-bit file:
string sourceFile = Path.Combine(baseFolder, "test_smart_layer.psd");
string outputFile = Path.Combine(outputFolder, "export.psd");
using (var psdImage8 = (PsdImage)Image.Load(sourceFile))
{
var psdOptions32 = new PsdOptions()
{
ChannelBitsCount = 32
};
psdImage8.Save(outputFile, psdOptions32);
}
using (var psdImage8 = (PsdImage)Image.Load(outputFile))
{
if (psdImage8.GlobalLayerResources[0] is Lr32Resource)
{
// is ok
}
else
{
throw new Exception("Wrong global resource, the first resource should be Lr32Resource");
}
}
Source*
Accurate Short Curve Rendering in AI Files
We have also enhanced the rendering of short curves within AI files in the latest .NET PSD library version. Please check out this code sample, which illustrates short curve rendering in C#:
string sourceFile = Path.Combine(baseFolder, "shortCurve.ai");
string outputFilePath = Path.Combine(outputFolder, "shortCurve.png");
using (AiImage image = (AiImage)Image.Load(sourceFile))
{
image.Save(outputFilePath, new PngOptions());
}
Source*
You can view the list of all new features, enhancements, and bug fixes introduced in this release by visiting Aspose.PSD for .NET 24.3 Release Notes.