Compressed TIFF not seeing impressive effect (sometimes its size is even larger)


#1

Our team is given the task to see how well a TIFF file with multiple pages can be compressed without sacrificing too much quality by using Aspose.Imaging. However we found out the size of the resulting TIFF file after applying the compression options sometimes is even larger than the original one. (a 1,291 KB tiff file after compression becomes a 1,326 KB one). In cases where the file size did become smaller, the compression effect is not very impressing. Is that the best the code can do? (a 42,500 KB tiff file after compression becomes a 40,496 KB one).


We are not very knowledgeable about all the settings in the compression options. We already spend lots of time browsing through Aspose.Imaging’s example project trying to borrow some code snippets to fulfill our task but not very successful. We already used your Aspose.Pdf to optimize our PDF files and are thinking about compressing TIFF files in other area. Are we on the right track selecting Aspose.Imaging trying to compress TIFF files? Will Aspose.Pdf provide the feature like that already?

Please find our code snippet in the attachment. Thank you for your help!

#2

Hi,

I have observed the information shared by you and request you to please provide the source Tiff image and if possible working code sample in the form of text file. We will investigate the issue on provision of requested information.

Many Thanks,


#3
Please find the following in the zip:
1. FA-aspose.cs.txt – code snippet for optimizing PDF streaming and PDF/TIFF size compression
2. PDF Files - 5940804F 04_GI SECTION FS Results.pdf, 6009187F and 18_PI SECTION FS Results.pdf
3. TIFF Files - 78976-2011.tif and BANKRUPTCY_SEARCH.tif
4, ReadMe.txt - this file

Q/A for Aspose.pdf
1. When we apply both streaming & file size optimization (in OptimizePdf() method), are we still getting the same streaming capability? Applying streaming Optimization was our original goal acquiring the Aspose.pdf product. We don’t want to lose this functionality when we compress the file.
2. After applying the streaming & file size optimization, the two PDF files result in larger files. The large PDF file (too big to include) size shrinks from 62,688 KB to 47,691 KB. It’s not very impressive. We were told SimpleText & iLovePdf are doing better in compression. (iLovePdf produces 12,396 KB from 62,688 KB)

Q/A for Aspose.Imaging
1. After applying the file size compression, “78976-2011.tif” implodes from 1,291 KB to 1,326KB. “BANKRUPTCY_SEARCH.tif” shrinks in size but we lose the color. We tried commenting out “outputSettings.Palette = ColorPaletteHelper.Create4BitGrayscale(false);” but the program won’t compile successfully.


#4

Hi Roy,

Thanks for sharing the additional details.

I have added an issue with ID IMAGINGNET-2350 in our issue tracking system to further investigate and resolve the issue w.r.t Aspose.Imaging end. We will share the feedback with you once it will be shared further by our product team. Moreover, for QA issue reported related to Aspose.Pdf, we will also share the feedback with you in that regard.

We are sorry for your inconvenience,


#5

The issues you have found earlier (filed as ) have been fixed in this Aspose.Words for JasperReports 18.3 update.