占用内存过大如何解决

        var opti=new  Aspose.PSD.ImageOptions.PsdOptions();
        opti.Source = new Aspose.PSD.Sources.FileCreateSource(@"C:\001.psd", false);
        opti.ColorMode = ColorModes.Rgb;
        opti.CompressionMethod = CompressionMethod.RLE;
        opti.Version =4;
        psdImage = (PsdImage)Aspose.PSD.Image.Create(opti, 10,10);

        Stream str = new FileStream(@"C:\002.png", FileMode.OpenOrCreate);
        Layer layer = new Layer(str);
        psdImage.AddLayer(layer);

      //10mb的图片,占用内存能达400mb左右..

@ymxkdoc could you please provide input file. ETA of RAM usage improvement is 24.3-24.4

005.jpg (348.4 KB)

00111.jpg (78.4 KB)

@ymxkdoc
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): PSDNET-1845

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.