Browse our Products

Aspose.PSD for .NET 22.10 - Release Notes

KeySummaryCategory
PSDNET-1287Remove obsolete properties in Lfx2ResourceEnhancement
PSDNET-1071Aspose.PSD can’t open PSD (RGB/16bit) with ZipWithoutPrediction compressionBug
PSDNET-1257Timeline effects disappear and show in a strange way. (in Photoshop)Bug
PSDNET-1278Transparency is not working for the Stroke effect with Inside PositionBug
PSDNET-1279Regression: Error on the opening of PSD FileBug
PSDNET-1284The text update fails with some Asian symbols. Error with parsing specific symbolBug
PSDNET-1291The text update fails with some Asian symbols. Error on rendering specific symbolBug
PSDNET-1292Error on opening the exported file by Photoshop after saving specific Asian symbolsBug

Public API Changes

Added APIs:

  • None

Removed APIs:

  • P:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.Lfx2Resource.Data
  • P:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.Lfx2Resource.BlendMode
  • P:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.Lfx2Resource.EffectColor
  • P:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.Lfx2Resource.Opacity

Usage examples:

PSDNET-1071. Aspose.PSD can’t open PSD (RGB/16bit) with ZipWithoutPrediction compression

string src = "237708.psd";
string output = "out_237708.psd";

using (var psdImage = (PsdImage)Image.Load(src))
{
    psdImage.Save(output);
}

PSDNET-1257. Timeline effects disappear and show in a strange way. (in Photoshop)

string sourceFile = "clearFile.psd";
string outputFile = "output_not_clearFile.psd";

using (var psdImage = (PsdImage)Image.Load(sourceFile))
{
    // Create timeline with few frames.
    TimeLine timeLine = TimeLine.InitializeFrom(psdImage);
    var layerIds = timeLine.LayerIds;

    List<Frame> frames = new List<Frame>(timeLine.Frames);
    for (int i = 0; i < 3; i++)
    {
        frames.Add(new Frame(timeLine));
    }
    timeLine.Frames = frames.ToArray();

    timeLine.Frames[1].LayerStates[layerIds[1]].StateEffects.AddColorOverlay();

    timeLine.Frames[2].LayerStates[layerIds[1]].StateEffects.AddGradientOverlay();
    timeLine.Frames[2].LayerStates[layerIds[1]].StateEffects.IsVisible = false;

    timeLine.ApplyTo(psdImage);

    psdImage.Save(outputFile);
}

PSDNET-1278. Transparency is not working for the Stroke effect with Inside Position

string sourceFile = "psdnet1278.psd";
string output = "out_1278.png";

using (var image = (PsdImage)Image.Load(sourceFile, new PsdLoadOptions() { LoadEffectsResource = true }))
{
    image.Save(output, new PngOptions());
}

PSDNET-1279. Regression: Error on the opening of PSD File

string sourceFile = "AllTypesLayerPsd.psd";
string outputPsd = "out_1279.psd";

using (var image = (PsdImage) Image.Load(sourceFile))
{
    image.Save(outputPsd);
}

PSDNET-1284. The text update fails with some Asian symbols. Error with parsing specific symbol

string testData = @"尐少尒尓尔尕尖尗尘尙尚尛尜尝尞尟尠尡尢尣尤尥尦尧尨尩尪尫尬尭尮尯尰就尲尳尴尵尶尷尸尹尺尻尼尽尾尿局屁层屃屄居屆屇屈屉届屋屌屍屎屏";

testData = testData.Substring(25, 1); // select the problematic symbol

string srcFile = "TestFileForAsianCharsBig.psd";
string output = "output.psd";

using (var image = (PsdImage)Image.Load(srcFile))
{
    var layer = (TextLayer)image.Layers[0];
    layer.UpdateText(testData);
    image.Save(output);
}

PSDNET-1287. Remove obsolete properties in Lfx2Resource

string src = "fileWithEffects.psd";
string output = "output.psd";

using (var psdImage = (PsdImage)Image.Load(src, new PsdLoadOptions() { LoadEffectsResource = true }))
{
    var layer = psdImage.Layers[1];
    var effect = layer.BlendingOptions.Effects[0];

    // Update effect BlendMode option
    effect.BlendMode = BlendMode.Darken;

    // Update effect Opacity option
    effect.Opacity = 128; // 50%

    // Update stroke effect fill Color option
    var strokeSettings = (IColorFillSettings)((StrokeEffect)effect).FillSettings;
    strokeSettings.Color = Color.DarkRed;

    psdImage.Save(output);
}

PSDNET-1291. The text update fails with some Asian symbols. Error on rendering specific symbol

string testData = @"咐咑咒咓咔咕咖咗咘咙咚咛咜咝咞咟咠咡咢咣咤咥咦咧咨咩咪咫咬咭咮咯咰咱咲咳咴咵咶咷咸咹咺咻咼咽咾咿
哀品哂哃哄哅哆哇哈哉哊哋哌响哎哏";

testData = testData.Substring(40, 25); // select the problematic symbols

string srcFile = "TestFileForAsianCharsBig 2.psd";
string output = "output.psd";

using (var image = (PsdImage)Image.Load(srcFile))
{
    var layer = (TextLayer)image.Layers[0];
    layer.UpdateText(testData);
    image.Save(output);
}

PSDNET-1292. Error on opening the exported file by Photoshop after saving specific Asian symbols

string testData = @"尐少尒尓尔尕尖尗尘尙尚尛尜尝尞尟尠尡尢尣尫尬尭尮尯尰就尲尳尴尵尶尷尸尹尺尻尼尽尾尿局屁层屃屄居屆屇屈屉届屋屌屍屎屏";

string srcFile = "TestFileForAsianCharsBig 2.psd";
string outFile = "output.psd";

using (var image = (PsdImage)Image.Load(srcFile))
{
    var layer = (TextLayer)image.Layers[0];
    layer.UpdateText(testData);

    image.Save(outFile);
}