Aspose.PSD for .NET 25.12 - Release Notes
Contents
[
Hide
]
This page contains release notes for Aspose.PSD for .NET 25.12
| Key | Summary | Category |
|---|---|---|
| PSDNET-2325 | [AI Format] Implement Soft Mask | Feature |
| PSDNET-2458 | [AI Format] Implementing the DeviceN ColorSpace handling | Feature |
| PSDNET-2594 | Implement support for LsdkResource | Feature |
| PSDNET-2220 | [AI Format] Resolving rendering issues | Bug |
| PSDNET-2373 | Abnormal export of a specific Image to PNG/JPG Format | Bug |
| PSDNET-2469 | In the file with the specified SmartObject, throws an exception: Unable to cast object of type System.Int32 to type ‘System.Collections.Generic.Dictionary | Bug |
| PSDNET-2564 | [AI Format] Fixing regression at AI rendering | Bug |
| PSDNET-2616 | Aspose.PSD generates a corrupted PSD file if a SmartObject is present | Bug |
| PSDNET-2634 | Layers with a clipping mask render with some stroke from base pixels | Bug |
Public API Changes
Marked as Obsolete:
- P:Aspose.PSD.FileFormats.Psd.Layers.Gradient.SolidGradient.Color
Added APIs:
- T:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.LsdkResource
- M:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.LsdkResource.#ctor
- P:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.LsdkResource.BlendModeKey
- P:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.LsdkResource.Length
- P:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.LsdkResource.SectionType
- P:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.LsdkResource.Subtype
- M:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.LsdkResource.Save(Aspose.PSD.StreamContainer,System.Int32)
- F:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.LsdkResource.TypeToolKey
Removed APIs:
- None
Usage examples:
PSDNET-2220. [AI Format] Resolving rendering issues
string sourceFile = Path.Combine(baseFolder, "Input_2.ai");
string outputFile = Path.Combine(outputFolder, "Input_2.png");
using (AiImage image = (AiImage)Image.Load(sourceFile))
{
image.Save(outputFile, new PngOptions());
}
PSDNET-2325. [AI Format] Implement Soft Mask
string sourceFile = Path.Combine(baseFolder, "Strawberry_jam_packaging.ai");
string outputFile = Path.Combine(outputFolder, "Strawberry_jam_packaging.png");
using (AiImage image = (AiImage)Image.Load(sourceFile))
{
image.Save(outputFile, new PngOptions());
}
PSDNET-2373. Abnormal export of a specific Image to PNG/JPG Format
string srcFile = Path.Combine(baseFolder, "123.psd");
string outFile = Path.Combine(outputFolder, "output.png");
using (var psdImage = (PsdImage)Image.Load(srcFile, new PsdLoadOptions() { LoadEffectsResource = true }))
{
psdImage.Save(outFile, new PngOptions() { ColorType = PngColorType.TruecolorWithAlpha });
}
PSDNET-2458. [AI Format] Implementing the DeviceN ColorSpace handling
string sourceFile = Path.Combine(baseFolder, "2458.ai");
string outputFile = Path.Combine(outputFolder, "2458.png");
using (AiImage image = (AiImage)Image.Load(sourceFile))
{
image.Save(outputFile, new PngOptions());
}
PSDNET-2469. In the file with the specified SmartObject, throws an exception: Unable to cast object of type System.Int32 to type ‘System.Collections.Generic.Dictionary
var sourceFilePath = Path.Combine(baseFolder, "Test_File.psd");
var outputFilePath = Path.Combine(outputFolder, "output.psd");
using (var psdImage = (PsdImage)Image.Load(sourceFilePath))
{
var psdImageCopy = psdImage;
using (var imageOptions = new PsdOptions(psdImageCopy))
{
psdImageCopy.Save(outputFilePath, imageOptions);
}
}
PSDNET-2564. [AI Format] Fixing regression at AI rendering
string sourceFile = Path.Combine(baseFolder, "example.ai");
string outputFile = Path.Combine(outputFolder, "example.png");
using (AiImage image = (AiImage)Image.Load(sourceFile))
{
image.Save(outputFile, new PngOptions());
}
PSDNET-2594. Implement support for LsdkResource
void AssertAreEqual(object expected, object actual, string message = null)
{
if (!object.Equals(expected, actual))
{
throw new FormatException(message ?? "Objects are not equal.");
}
}
string srcFile = Path.Combine(baseFolder, "123 1.psd");
string outFile = Path.Combine(outputFolder, "output.psd");
using (var psdImage = (PsdImage)Image.Load(srcFile, new PsdLoadOptions() { LoadEffectsResource = true }))
{
AssertAreEqual((psdImage.Layers[8].Resources[3] as LsdkResource).Length, 4);
psdImage.Save(outFile);
}
// check after saving
using (var psdImage = (PsdImage)Image.Load(outFile, new PsdLoadOptions() { LoadEffectsResource = true }))
{
AssertAreEqual((psdImage.Layers[8].Resources[3] as LsdkResource).Length, 4);
}
PSDNET-2616. Aspose.PSD generates a corrupted PSD file if a SmartObject is present
string inputFile = Path.Combine(baseFolder, "LogoOutside.psd");
string outputFile = Path.Combine(outputFolder, "output.psd");
using (PsdImage image = (PsdImage)Image.Load(inputFile))
{
var imageOptions = new PsdOptions(image);
image.Save(outputFile, imageOptions);
// Saved psd file should be opened by PS 26.10 or later version without mistakes.
}