~ubuntu-branches/ubuntu/breezy/gimp/breezy

« back to all changes in this revision

Viewing changes to plug-ins/twain/README

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2005-10-04 19:04:46 UTC
  • Revision ID: james.westby@ubuntu.com-20051004190446-ukh32kwk56s4sjhu
Tags: upstream-2.2.8
ImportĀ upstreamĀ versionĀ 2.2.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
TWAIN Plug-in
 
2
Copyright (C) 1999 Craig Setera
 
3
Craig Setera <setera@home.com>
 
4
03/31/1999
 
5
 
 
6
Updated for Mac OS X support
 
7
Brion Vibber <brion@pobox.com>
 
8
07/22/2004
 
9
 
 
10
This program is free software; you can redistribute it and/or modify
 
11
it under the terms of the GNU General Public License as published by
 
12
the Free Software Foundation; either version 2 of the License, or
 
13
(at your option) any later version.
 
14
 
 
15
This program is distributed in the hope that it will be useful,
 
16
but WITHOUT ANY WARRANTY; without even the implied warranty of
 
17
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
18
GNU General Public License for more details.
 
19
 
 
20
You should have received a copy of the GNU General Public License
 
21
along with this program; if not, write to the Free Software
 
22
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
23
 
 
24
Based on (at least) the following plug-ins:
 
25
Screenshot
 
26
GIF
 
27
Randomize
 
28
 
 
29
Any suggestions, bug-reports or patches are welcome.
 
30
 
 
31
This plug-in interfaces to the TWAIN support library in order
 
32
to capture images from TWAIN devices directly into GIMP images.
 
33
The plug-in is capable of acquiring the following type of
 
34
images:
 
35
 - B/W (1 bit images translated to grayscale B/W)
 
36
 - Grayscale up to 16 bits per pixel
 
37
 - RGB up to 16 bits per sample (24, 30, 36, etc.)
 
38
 - Paletted images (both Gray and RGB)
 
39
 
 
40
Prerequisites:
 
41
 Should compile and run on both Win32 and Mac OS X 10.3 (possibly
 
42
 also on 10.2).
 
43
 
 
44
Known problems:
 
45
 
 
46
 - Multiple image transfers will hang the plug-in.  The current
 
47
   configuration compiles with a maximum of single image transfers.
 
48
 - On Mac OS X, canceling doesn't always close things out fully.
 
49
 - Epson TWAIN driver on Mac OS X crashes the plugin when scanning.
 
50
 
 
51
Debugging:
 
52
 There are two different versions of the program included, a standard
 
53
 version and a version built for debugging.  The debugging version is
 
54
 a special version capable of capturing the TWAIN datasource data to
 
55
 a file for later processing.  This feature can be used to create a data
 
56
 dump that can be sent to me if for some reason the plug-in fails for
 
57
 your TWAIN datasource.  The function of the plug-in is controlled by
 
58
 the name of the executable file.  The plug-in should be placed in your
 
59
 plug-ins directory and named as follows:
 
60
 
 
61
twain.exe - This is the standard (non-debugging) version.  This file will
 
62
  not behave differently if renamed.  This version is intended to be used
 
63
  unless your TWAIN datasource has some problem.
 
64
 
 
65
gtwain.exe - This is the debugging version of the program shipped along.
 
66
  If this program is used as named, it will behave the same as "twain.exe"
 
67
  except that the file C:\twain.log will be written.  This file is a text
 
68
  file with very little information available for debugging.
 
69
 
 
70
dtwain.exe - Renaming "gtwain.exe" to "dtwain.exe" in your plug-ins directory
 
71
  will change the behavior of the plug-in.  The menu option will be registered
 
72
  as "TWAIN Acquire (Dump)..." and will cause the TWAIN acquire operation to
 
73
  be dumped to the file "C:\twaincap.bin".  This file contains all of the data
 
74
  necessary to recreate the capture on another system (such as my machine).  The
 
75
  image will not be displayed, as it might cause the plug-in to crash making
 
76
  the data useless.  Instead, a message will be displayed that the image
 
77
  information was dumped to a file.
 
78
 
 
79
rtwain.exe - Renaming "gtwain.exe" to "rtwain.exe" in your plug-ins directory
 
80
  will change the behavior of the plug-in.  The menu option will be registered
 
81
  as "TWAIN Acquire (Read)..." and will cause the TWAIN acquire operation to
 
82
  read a previously dumped (using dtwain.exe) TWAIN acquire from 
 
83
  "C:\twaincap.bin".
 
84
 
 
85
If you find that you are unable to capture data from you datasource (the plug-in
 
86
crashes or the image is wrong), please capture data using the following steps:
 
87
 
 
88
1) Copy gtwain.exe to your plug-ins directory as "dtwain.exe".
 
89
2) Run The GIMP.
 
90
3) Choose Xtns->TWAIN Acquire (Dump)...
 
91
4) Choose the datasource settings that are causing problems.
 
92
5) Choose a *SMALL* sample image.
 
93
6) Zip up "C:\twaincap.bin" and "C:\twain.log" and send them to me.