Browse our Products

If so you can download any of the below versions for testing. The product will function as normal except for an evaluation limitation. At the time of purchase we provide a license file via email that will allow the product to work in its full capacity. If you would also like an evaluation license to test without any restrictions for 30 days, please follow the directions provided here.

KeySummaryCategory
PSDPYTHON-197Add API to Apply Layer Mask to Layer.Feature
PSDPYTHON-198Make TextLayer rendering not automatic to save original pixels before changesFeature

Public API Changes

Added APIs:

  • M:Aspose.PSD.FileFormats.Psd.Layers.Layer.ApplyLayerMask
  • P:Aspose.PSD.ImageLoadOptions.PsdLoadOptions.AllowNonChangedLayerRepaint

Removed APIs:

  • M:Aspose.PSD.FileFormats.Psd.Layers.TextLayer.ReleaseManagedResources

Usage examples:

PSDPYTHON-197. Add API to Apply Layer Mask to Layer.

        sourceFile = "example.psd"
        outFile = "export.png"

        with PsdImage.load(sourceFile, PsdLoadOptions()) as img:
            psdImage = cast(PsdImage, img)
            psdImage.layers[1].apply_layer_mask()

            opt = PngOptions()
            opt.color_type = PngColorType.TRUECOLOR_WITH_ALPHA
            psdImage.save(outFile, opt)

PSDPYTHON-198. Make TextLayer rendering not automatic to save original pixels before changes.

        srcFile = "psdnet2400.psd"
        output1 = "unchanged-2400.png"
        output2 = "updated-2400.png"

        opt = PsdLoadOptions()
        opt.allow_non_changed_layer_repaint = False
        with PsdImage.load(srcFile, opt) as img:
            psdImage = cast(PsdImage, img)
            psdImage.save(output1, PngOptions())

            textLayer = cast(TextLayer, psdImage.layers[1])
            textLayer.text_data.update_layer_data()

            psdImage.save(output2, PngOptions())