I am running into an annoying memory problem using Aspose.Imaging. In particular, I am trying to convert the first page of a multi-page tiff into a jpg image. Profiling the code I have seen that a lot of RAM (some Gbs) is used by a Aspose.Imaging.Color structure that seems to be the color palette. The problem is proportional to the input and output image size and it does not depend on a specific tiff image.
Here the code:
using (Aspose.Imaging.FileFormats.Tiff.TiffImage image = (Aspose.Imaging.FileFormats.Tiff.TiffImage)Aspose.Imaging.Image.Load(stream))
Aspose.Imaging.FileFormats.Tiff.TiffFrame frame = image.Frames;
Aspose.Imaging.ImageOptions.JpegOptions jpegOptions = new Aspose.Imaging.ImageOptions.JpegOptions();
jpegOptions.Quality = this.DocumentPreviewConfiguration.ImageQuality;
using (MemoryStream imageStream = new MemoryStream())
Thanks in advance,