Epson Twain Image Output Control (File size Reduction)

dasher3000 used Ask the Experts™
Hi! I have:
1. Epson GT-S80
2. Dental Practice Management Application (Dentrix)
3. The Document system in this program appears to use the TWAIN driver from the Epson scanner.
4. A single page scan winds up being almost 5MB
     --- typical 200dpi color JPG photo scan should be around 500K

Is there somewhere I can go to get these scan file sizes lower?

I am using TWACK_32 to troubleshoot as well. When TWACK acquires and I save the result, it is also about 5MB per page.

I have tried everything I can think of in EPSON SCAN and WINDOWS SCANNER PROFILES.
 --- but maybe I missed something!

Any ideas?  Thanks!
-- Dasher
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Dr. KlahnPrincipal Software Engineer

If you are scanning documents, scan in grayscale instead and save to 60-level GIF.

Full color RGB requires 24 bits per pixel.  Grayscale requires 8 bits.  So scan in grayscale, which saves 2/3 of the raw image size.

Paletted GIF at 60 levels requires 6 bits per pixel and is plenty for black-and-white documents.  This will cut the document size by 75% even before the GIF compression, and GIF compression will cut it way further due to the abundant white space.

If you must cut it even further, histogram adjust the white level lower so that everything "near white" becomes white, and the GIF encoder will do even better.

As a side note, GIF (from a paletted original) is lossless, unlike JPG, and the stored results will not have those annoying JPG artifacts haloing all the lines.
Most Valuable Expert 2013

If you do want to use jpg though you can adjust the file compression settings in Epson Scan File Save Settings menu ( the button next to the jpg format selection).

Check the dental office don't need a minimum quality to save the image at though (images of teeth that become part of the patient record). For documents you should be fine.


Hi. Thanks for the ideas.

I have adjusted everything I can find, including the JPG Compression levels within the Epson Scan Settings.
I have checked with the office: it's only documents - 200dpi JPG at 80% would be fine.
I do understand the basic ideas behind image compression vs. quality.

The issue is that despite any adjustment I make, the image file size generated is still 5MB per page.

Here is a little more information about the issue from the program writers:
** ALSO: The practice cannot use the OEM DIALOG option since they are high-volume! 15 locations with over 100 scanners...

I believe (I will check later today) that we are using a sightly older version that doesn't include some of those AUTO ACQUIRE options that state it uses the scanner settings. I'll post later!  :-)

Acronis in Gartner 2019 MQ for datacenter backup

It is an honor to be featured in Gartner 2019 Magic Quadrant for Datacenter Backup and Recovery Solutions. Gartner’s MQ sets a high standard and earning a place on their grid is a great affirmation that Acronis is delivering on our mission to protect all data, apps, and systems.

Joe WinogradDeveloper
Fellow 2017
Most Valuable Expert 2018

Hi Dasher,

The problem is shown in the Dentrix magazine article that you posted:
Your selection determines the dpi setting that will be used for scanning, as follows:

BLACK & WHITE TEXT – 200 dpi
COLOR IMAGE – 600 dpi
HIGH QUALITY BLACK & WHITE – 900-1200 dpi, depending on your scanner
You said in your initial post that "typical 200dpi color JPG photo scan should be around 500K", but the key point shown in the article is COLOR IMAGE – 600 dpi.

At 600 DPI, 5MB sounds about right, depending on the JPG compression that it uses. I don't have the Dentrix software or the Epson GT-S80 scanner, but I just did a test here scanning an 8.5x11 color page with PaperPort 14.5 on a Brother MFC. Here are the results ("Best" quality means low compression; "Better" means medium compression; "Good" means high compression):
DPI   Quality   Size(MB)
---   -------   --------
600   Best      26.2
600   Better     6.6
600   Good       4.9
200   Best       2.5
200   Better     0.5
200   Good       0.4

Open in new window

Since you said, "The practice cannot use the OEM DIALOG option since they are high-volume", the only hope that you have of getting to the 500KB range instead of 5MB is to configure the Dentrix Auto File Acquire method to use 200 DPI for color instead of 600 DPI. I don't know if that's possible with Dentrix. If it's not, a work-around is to have Dentrix scan to a folder that another app is monitoring...a so-called "Watched Folder". When a JPG comes into the Watched Folder, the app can change the quality and/or DPI to reduce its file size. The app could be based on a command line tool (like GraphicsMagick or ImageMagick) and have no operator intervention in order to be suitable for their high-volume practice. Here's an EE article that shows how to reduce JPG file size with GraphicsMagick:
Reduce the file size of many JPG files in many folders via an automated, mass, batch compression method

And here's an interesting EE thread about Watched Folders:

Regards, Joe


Hey, Joe!
Thank you for that information!
I did just get off the phone with a Tier2 guy over at Dentrix and they pretty much walked me through exactly what you describe.

Short story : The Dentrix DocCenter "Quick Scan" system is NOT the way to go if you want FULL CONTROL of your image file sizes / type.

Your users will have to execute 1 or 2 more clicks in order to use the AUTO-ACQUIRE / WATCHED FOLDERS method so that your DocFiles get stored in the most efficient way.

I have not fully tested this, but here is what was described and it makes sense...
1. Make folder :: C:\DTX_SCANS
2. Doc Center > Setup - Acquisition Method > AutoFile Acquire
     ** NOTE:  This monitors the DTX_SCANS folder every 5 seconds AFTER
               the last scanned page has occured.
1. OPEN DocCenter to Patient
2. Open SCANNER SOFTWARE (ex. Epson Scan2 ...etc...)
3. SCAN to C:\DTX_SCANS as generally a 200dpi JPG would work well for pretty much anything (BW / GREY / COLOR)
    and be of reasonable size.

Thanks again.
-- Dasher
Joe WinogradDeveloper
Fellow 2017
Most Valuable Expert 2018

Hi Dasher,
You're welcome...and thanks to you for the update...yes, it makes perfect sense! Let me know how it goes when you implement it. Regards, Joe
Use the AUTO-ACQUIRE option that monitors an output folder, See details above.
Joe WinogradDeveloper
Fellow 2017
Most Valuable Expert 2018
Use the AUTO-ACQUIRE option that monitors an output folder
Ah, exactly what I posted...glad to hear it! Regards, Joe

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial