Hi
We would like to open a multipage TIFF and change the bit depth from 32 to 24
Then save the multipage TIF (now with a 24 bit depth)
Hi
We would like to open a multipage TIFF and change the bit depth from 32 to 24
Then save the multipage TIF (now with a 24 bit depth)
I have observed the requirements shared by you and suggest you to please try using following sample code on your end.
public static void testTiffDepth()
{
using (Aspose.Imaging.Image image = Aspose.Imaging.Image.Load(@"D:\imaging_files\Tiff2Tiff.tiff"))
{
Aspose.Imaging.ImageOptions.TiffOptions saveOptions =
new Aspose.Imaging.ImageOptions.TiffOptions(Aspose.Imaging.FileFormats.Tiff.Enums.TiffExpectedFormat.Default);
saveOptions.Compression = Aspose.Imaging.FileFormats.Tiff.Enums.TiffCompressions.Jpeg;
// saveOptions.Photometric = Aspose.Imaging.FileFormats.Tiff.Enums.TiffPhotometrics.Ycbcr;
saveOptions.BitsPerSample = new ushort[] { 24, 24, 24 };
image.Save(@"D:\imaging_files\Tiff2Tiff_ouput.tiff", saveOptions);
}
}