Browse our Products

Aspose.PSD for Java 21.6 - Release Notes

KeySummaryCategory
PSDJAVA-351Сlipping mask for a group does not render correctlyBug
PSDJAVA-352Regular or vector mask for a layer group is ignored on renderingBug
PSDJAVA-353PSD image with disabled vector layer masks on saving enables vector masksBug
PSDJAVA-354Exception when creating a TextLayer with text longer than 255 charactersBug

Public API Changes

Added APIs:

  • None

Removed APIs:

  • None

Usage examples:

PSDJAVA-351. Сlipping mask for a group does not render correctly

        String sourceFileName = "AppleClip.psd";
        String outputFileName = "result.png";

        PsdImage image = (PsdImage) Image.load(sourceFileName);
        try
        {
            image.save(outputFileName, new PngOptions());
        }finally {
            image.dispose();
        }

PSDJAVA-352. Regular or vector mask for a layer group is ignored on rendering

        String sourceFileName = "Stripes3Mask.psd";
        String outputFileName = "OutputStripes3Mask.png";

        PsdImage image = (PsdImage)Image.load(sourceFileName);
        try
        {
            image.save(outputFileName, new PngOptions());
        }finally {
            image.dispose();
        }

PSDJAVA-353. PSD image with disabled vector layer masks on saving enables vector masks

        String sourceFileName = "FourWithMasksVd.psd";
        String outputFileName = "FourWithMasksVdOutput.psd";

        PsdImage image = (PsdImage) Image.load(sourceFileName);
        try
        {
            image.save(outputFileName);
        }finally {
            image.dispose();
        }

PSDJAVA-354. Exception when creating a TextLayer with text longer than 255 characters

        String output = "output.psd";

        PsdImage image = new PsdImage(100, 100);
        try
        {
            char[] chars = new char[256];
            Arrays.fill(chars, '*');
            String text = new String(chars);
            image.addTextLayer(text, Rectangle.getEmpty());

            image.save(output);
        }finally {
            image.dispose();
        }