Aspose.PSD for Python via .NET 24.3 - Release Notes

Key Summary Category
PSDPYTHON-42 [AI Format] Reduce loading time of large multipage AI images Enhancement
PSDPYTHON-45 PSD File after the converting from 8 bit to 16 bit became unreadable Bug
PSDPYTHON-46 PSD File after the converting from 8 bit to 32 bit became unreadable Bug
PSDPYTHON-47 [AI Format] Fix the Short Curve rendering at AI file Bug

Public API Changes

Added APIs:

  • None

Removed APIs:

  • None

Usage examples:

PSDPYTHON-42. [AI Format] Reduce loading time of large multipage AI images

   # No sample

PSDPYTHON-45. PSD File after the converting from 8 bit to 16 bit became unreadable

        sourceFile = "test_smart_layer.psd"
        outputFile = "export.psd"

        with PsdImage.load(sourceFile) as psdImage8:
            psdOptions16 = PsdOptions()
            psdOptions16.channel_bits_count = 16

            psdImage8.save(outputFile, psdOptions16)

        with PsdImage.load(outputFile) as image:
            psdImage16 = cast(PsdImage, image)

            testResource = as_of(psdImage16.global_layer_resources[5], Lr16Resource)
            if testResource is not None:
                # is ok
                pass
            else:
                raise Exception("Wrong global resource, the first resource should be Lr16Resource")

PSDPYTHON-46. PSD File after the converting from 8 bit to 32 bit became unreadable

        sourceFile = "test_smart_layer.psd"
        outputFile = "export.psd"

        with PsdImage.load(sourceFile) as psdImage8:
            psdOptions32 = PsdOptions()
            psdOptions32.channel_bits_count = 32

            psdImage8.save(outputFile, psdOptions32)

        with PsdImage.load(outputFile) as image:
            psdImage32 = cast(PsdImage, image)

            testResource = as_of(psdImage32.global_layer_resources[5], Lr32Resource)
            if testResource is not None:
                # is ok
                pass
            else:
                raise Exception("Wrong global resource, the first resource should be Lr32Resource")

PSDPYTHON-47. [AI Format] Fix the Short Curve rendering at AI file

        sourceFile = "shortCurve.ai"
        outputFilePath = "shortCurve.png"

        with AiImage.load(sourceFile) as image:
            image.save(outputFilePath, PngOptions())