We are using aspose to convert image to TIFF using TiffCCITTFax3 format and receiving a really bad quality.
public async Task<string> ConvertPNGToTIF(string strSourceFile, string strDestFile)
{
Aspose.Imaging.FileFormats.Png.PngImage imgpng = null;
try
{
// Convert PNG document
imgpng = new Aspose.Imaging.FileFormats.Png.PngImage(strSourceFile);
ImageOptionsBase optionsBase = new TiffOptions(Aspose.Imaging.FileFormats.Tiff.Enums.TiffExpectedFormat.TiffCcittFax3);
optionsBase.ResolutionSettings = resolutionNonPDF;
imgpng.Save(strDestFile, optionsBase);
imgpng.Dispose();
}
catch (Exception ex)
{
return "Error: Image conversion failed, Reason: " + ex.Message.ToString();
}
return "Conversion Successfull";
}
Could someone please give a suggestion?