-------------------------------------------------------------------------- I've saved the instructions from the website, as the author didn't include them in the ZIP file! -- Steve Lindholm -------------------------------------------------------------------------- goof.com TwainTiffBatcher Overview External Dependencies and Libraries License Download Overview In February, 2002, I purchased a CanoScan FS4000US, a nice high-dpi film scanner. Unfortunately, the driver provided with it does not support batch scanning to files. My choices were to write a TWAIN client that wrote each image to disk, or purchase GOBS of memory. I chose the former because it improved the workflow for me. TwainTiffBatcher accepts a number of input items and then repeatedly scans images to TIFF files by retrieving them from a TWAIN device. This allows for easier batch scanning workflows without the memory requirements of keeping all the images loaded in Photoshop. Possibly later I will have more time, but right now, I can only give a brief description of the program and its use. The inputs to the file writing engine are: TIFF Output Directory The directory into which tiff files are written. Filename printf string A printf string used to derive filenames. This string will be used to format one decimal argument, so it should have a %d in it somewhere for the index number to be placed. I use: scan-%03d.tif which formats numbers to a minimum of three digits (i.e., file with index 5 would be scan-005.tif). Beginning index The first index number to use when generating a filename. Each time an image is written, the index is increased by one for the next image's filename generation. Update beginning index Updates the text field for beginning index when the scanner driver interface window is closed. This allows you not to worry about keeping track of the files to know what index should be used next Save settings Saves settings permanently in the registry for the next time the program is executed Remove Stored Settings Removes the settings stored in the registry. TwainTiffBatcher will always check to verify whether writing an image would overwrite an existing file. In the case it does, it warns you and asks for permission to overwrite the file. Additionally, it tries to predict a write-failure for lack of security or write permissions type situations. It cannot predict failure due to lack of free disk space, but will handle that situation gracefully when it arises. External Dependencies and Libraries TwainTiffBatcher is dependent on EZTWAIN 2 from Dosadi. It can be downloaded here. I also have a local copy of the archive. License TwainTiffBatcher is distributed under the following license. By downloading and using it, you agree to the terms of this license. The important part is that it is free for noncommercial use. For commercial use, please contact me for terms. All of the documentation and software included in this software distribution is copyrighted by Matthew C. Mead (mmead@goof.com). Copyright 2002, Matthew C. Mead. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. All advertising materials mentioning features or use of this software must display the following acknowledgement: This product includes software developed by Matthew C. Mead. 4. Neither the name of the author nor the names of any co-contributors may be used to endorse or promote products derived from this software without specific prior written permission. 5. Commercial use of this software and that derived from it is expressly prohibited without specific prior written permission. THIS SOFTWARE IS PROVIDED BY MATTHEW C. MEAD ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL MATTHEW C. MEAD OR CO-CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OFUSE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Download TwainTiffBatcher is distributed in a small zip archive. To install and use TwainTiffBatcher, download the archive and extract its contents to a new folder. You can run TwainTiffBatcher by double clicking twbatch.exe.