Bulk resize / compress TIFF files

0

We support and host an EMR for several medical practices; these practices scan images into this software stored as flat files (TIFF mostly). Due to poor user training (people scanning text pages as full color images...), and other factors, we are facing a storage issue due to the size and number of images scanned.

Without going into too much detail, I have been tasked with finding a method of reducing existing file sizes without sacrificing too much resolution.

I have done this before using Irfanview's batch file operations - I converted about a million images from JPEG to TIFF Black & White - the process was fast (comparatively speaking), but still took several days.

I am looking at a total of 11,000,000 files totaling about 2 Terabytes of space, but it is growing rapidly.

I couldn't find any posts about re-sizing/compressing this many files - What is the best utility / script to handle a task like this?

Thanks!

Aron

Posted 2014-08-15T18:53:31.283

Reputation: 103

Question was closed 2014-08-20T02:54:32.753

If the plain text pages were identified and OCR software was used to convert them to .doc or word documents you could save a bunch of space. – cybernard – 2014-08-15T19:59:25.020

What OS windows,linux,mac? – cybernard – 2014-08-15T20:02:48.787

Question 4TB and 6TB hard drives are easy to come by why not get a couple of them. You could put 5 or more 6tb hard drives in a raid array and way more storage than you do now. I picked up a 4tb hard drive for $170 and that was without trying to comparison shop. – cybernard – 2014-08-15T20:14:47.893

Answers

0

I'm a fan of GraphicsMagick (aka ImageMagick)

Here's an example of resizing images, putting the new ones in a separate directory:

cd public_html/images/thumbs
mogrify -resize 16x12 -quality 100 -path ../new-thumbs *.jpg

Here's how to convert images into a different format -- but it'll zap the originals:

mogrify -format tiff *.jpg

johntellsall

Posted 2014-08-15T18:53:31.283

Reputation: 356

Best answer for this specific situation (mass conversion) - I modified a powershell script that uses Imagemagick to convert, recursively. It includes a file size check and color depth check, as well as logging. – Aron – 2014-08-21T20:08:54.050