In our current project we’re trying to convert tiffs to black and white tiffs as follows
Hi Boris,
Thank you for using Aspose products.
I have evaluated your presented scenario with your sample images while using the latest version of Aspose.Imaging for .NET 2.1.0. I am afraid, the said issue wasn’t replicated on my end, in fact the results were saved in fraction of a second. This could be due to the reason that you are probably using an older version of Aspose.Imaging for .NET component. I would recommend you to download the latest assemblies from the download link provided above and give them a try on your end. Hopefully you will not experience the said issue with latest release.
Sample Code:
Dim sw1 As New Stopwatch()
Dim sw2 As New Stopwatch()
sw1.Start()
Using image = CType(Aspose.Imaging.Image.Load(myDir & “0316_0001.tif”), RasterImage)
sw1.Stop()
Dim options = New TiffOptions()
options.Compression = TiffCompressions.CcittFax4
Dim outputStream = New FileStream(myDir & “output.tiff”, FileMode.Create)
sw2.Start()
image.Save(outputStream, options)
sw2.Stop()
End Using
Console.WriteLine(“Elapsed to Load: {0}”, sw1.Elapsed)
Console.WriteLine(“Elapsed to Save: {0}”, sw2.Elapsed)
Please feel free to write back in case you have further questions.
Hey Barbar,
Hi Boris,