Hi Aspose,
I am currently working on a new action called Convert PDF to JPEG using the JpegOptions for configuring the outputted image.
During our testing we have discovered that whenever we set the JpegOptions CompressionType to Lossless or JpegLs that the output file is corrupted regardless of what we set the other JpegOptions to. The Baseline and Progressive compression types work correctly.
Aspose.Imaging.Sources.StreamSource outputStreamSource = new Aspose.Imaging.Sources.StreamSource(memoryStream);
Aspose.Imaging.ImageOptions.JpegOptions options = new Aspose.Imaging.ImageOptions.JpegOptions();
options.Source = outputStreamSource;
options.ResolutionSettings = new Aspose.Imaging.ResolutionSetting(resolution, resolution);
options.ColorType = compressionColourMode;
options.CompressionType = compressionType;
options.ResolutionUnit = resolutionUnit;
options.Quality = imageQuality;
Could you verify that my finding are correct and that there is some kind of bug causing the corrupted file?
Also, as specified in the following screenshot, is the BitsPerChannel property only to be set if we use lossless?
image.png (77.0 KB)
regards,
Djs