Solved

what the recommended dll for file compression,disassembly assemble of pdf tiff files

Posted on 2016-08-28
8
31 Views
Last Modified: 2016-09-12
we are running a custom application for archiving purposes asp.net based with twain and api for core archiving app (third party)
with main functionality (scan using twain driver ) assemble scanned papers to one tiff file format and save the file (document)
we ran into issue as assembled document has a medium size for black/with 500kb  and large size for color documents (10-90)mb
which is unacceptable
target size is
(20-200 kb) for black and white documents (papers around 10 pages)
(200kb-2 mb) for colored documents relay on resolution and # of papers per documents
any suggestion for a good dll can be used to (disassemble,assemble)with a good acceptable size
hint:
current document count vs size is 52,000 document with total size 46 GB
0
Comment
Question by:Kamal Khaleefa
  • 3
  • 2
8 Comments
 
LVL 47

Expert Comment

by:dbrunton
Comment Utility
If you are looking for a compression util then try 7-Zip  http://www.7-zip.org/download.html  Free to use.  That may compress the files but they'll be in zip format rather than tiff.  Which may not be what you want.

Also are you putting your TIFF files into PDF?  If so, why?  Why not keep them in TIFF?

Also from a rough look at your figures you are wanting to compress your TIFF files by up to a factor of 50x.  That is extreme and quite probably not doable.

Go back and have a look at your requirements.  Do you need the full quality of your present TIFF documents?  Could you save them with lower resolution and quality?  Do you actually need TIFF, would JPEG do the job instead of TIFF?  JPEG would give you vastly smaller file size at the cost of fidelity but do you need that fidelity?
0
 
LVL 16

Author Comment

by:Kamal Khaleefa
Comment Utility
HI

we are keeping the documents as tiff files.

the problem if we are combining 2 images into one tiff file,the new produced document has higher size that both of them together.

Thanks
0
 
LVL 47

Expert Comment

by:dbrunton
Comment Utility
How are you combining the two files together?
0
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 
LVL 51

Accepted Solution

by:
Joe Winograd, EE MVE earned 500 total points
Comment Utility
GraphicsMagick and ImageMagick are command line executables that can do it. Here's an EE article that shows how to download/install GM and discusses the various editions:
Reduce the file size of many JPG files in many folders via an automated, mass, batch compression method

It also shows how to shrink the file size of JPG files, although the -quality option doesn't work for TIFF files. Instead, use the -compress option:

-compress TYPE

where the choices for TYPE are:

None
BZip
Fax
Group4
JPEG
Lossless
LZW
RLE
Zip
LZMA

Note that +compress makes the output file uncompressed. Also note that Lossless is just for lossless JPEG, so does not apply to TIFF files (all of the command line params are documented at http://www.graphicsmagick.org/GraphicsMagick.html).

To convert and modify the source file directly, use the mogrify sub-command, something like:

gm mogrify -compress Group4 input.tif 

Open in new window

To convert and store the compressed file in a new file, use the convert sub-command, something like:

gm convert input.tif -compress Group4 output.tif 

Open in new window

I just tested GM with a 50 MB uncompressed TIFF file — shrank it to a 96 KB TIFF file with Group4 compression! ImageMagick also supports the same convert and mogrify functions. Regards, Joe
0
 
LVL 47

Expert Comment

by:dbrunton
Comment Utility
Give all the points to joe
0
 
LVL 51

Expert Comment

by:Joe Winograd, EE MVE
Comment Utility
My thanks to dbrunton for the kind gesture and Mr. Wolfe for the close. Regards, Joe
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Need help with a query. 10 43
Paging GridView 7 32
Need a poor man's PowerPoint 5 34
How to open a link from vb.net app 3 9
Let’s list some of the technologies that enable smooth teleworking. 
When the confidentiality and security of your data is a must, trust the highly encrypted cloud fax portfolio used by 12 million businesses worldwide, including nearly half of the Fortune 500.
This video demonstrates how to use each tool, their shortcuts, where and when to use them, and how to use the keyboard to improve workflow.
This video Micro Tutorial is the first in a two-part series that shows how to create and use custom scanning profiles in Nuance's PaperPort 14.5 (http://www.experts-exchange.com/articles/17490/). But the ability to create custom scanning profiles al…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now