We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

TIFF Output Efficiency

Greetings,

I am trying to convert files (Word, Excel, PowerPoint, Project, HTML to name a few) to TIFF files and I find that the current Aspose release presents much slower conversion speeds. I was expecting the rendering to be around 10 pages/sec, i.e. around 36K pages/hr but this is not the case with the current release.

Some performance benchmarks I am seeing:

Document Opened: 8 pages
Document Saved: 6248 ms
Average speed: 4799 pages/hr

Document Opened: 2 pages
Document Saved: 1339 ms
Average speed: 7200 pages/hr

Document Opened: 10 pages
Document Saved: 6477 ms
Average speed: 6000 pages/hr

Following is the sample code that I am using:

private void SaveAsTIFF(string filename)

{

// set output file

string outputFile = filename.Replace(Path.GetExtension(filename), ".tif");

// set save options, NOTE: Using ImageColorMode.BlackAndWhite seems to be 2-3x slower, so this appears to be optimal settings

ImageSaveOptions opts = new ImageSaveOptions(SaveFormat.Tiff);

opts.ImageColorMode = ImageColorMode.None; // ImageColorMode.BlackAndWhite;

opts.Resolution = 300;

opts.TiffCompression = TiffCompression.Ccitt4;

// save file

Stopwatch timer = new Stopwatch();

timer.Start();

Document doc = new Document(filename);

Console.WriteLine("Document Opened: {0} pages", doc.PageCount);

doc.Save(outputFile, opts);

timer.Stop();

Console.WriteLine("Document Saved: {0} ms", timer.ElapsedMilliseconds);

int speed = (int)(doc.PageCount / (decimal)(timer.ElapsedMilliseconds / 1000) * 3600);

Console.WriteLine("Average speed: {0} pages/hr", speed);

doc = null;

<span style=“font-size:9.5pt;font-family:Consolas;mso-fareast-font-family:“MS Mincho”;
mso-fareast-theme-font:minor-fareast;mso-ansi-language:EN-US;mso-fareast-language:
ZH-CN;mso-bidi-language:AR-SA”> }

I would really appreciate if someone can take a look into this and help me out. I know for sure that a couple of months back the speed was pretty good.

Regards,
Syed.

Hi

Thanks for your request. Performance also depends on complexity of the document. Could you please attach your test documents here for testing? We will check the issue and provide you more information.

Best regards,