GNOME Bugzilla – Bug 601821
Retrieve multiple images from TWAIN data source (primarily multiple pages from a scanner document feeder)
Last modified: 2018-05-24 12:42:56 UTC
When scanning from the document feeder of a scanner using the TWAIN plugin for Windows, the TWAIN capability CAP_XFERCOUNT is not set. This means that the scanner driver will use whatever its default value is. This capability indicates the number of pages the application will be acquiring. In some cases, this makes the driver start a multipage scan, while GIMP is only capable of scanning a single image at a time. Typically, if several pages were present in the feeder, more than one would be scanned, but only a single image would appear in GIMP, making the user lose some data. This capability should therefore be set to 1. This would allow users to scan multipage documents by acquiring sheets one at a time. GIMP version : GNU Image Manipulation Program version 2.6.7 using GEGL version 0.1.0 (compiled against version 0.1.0) using GLib version 2.20.4 (compiled against version 2.20.4) using GTK+ version 2.16.5 (compiled against version 2.16.5) using Pango version 1.24.5 (compiled against version 1.24.5) using Fontconfig version 2.7.1 (compiled against version 2.7.1)
Seems like you know what to do. Maybe you could contribute this change as a patch - and if you know more about TWAIN, maybe you'd like to have a look at the other bugs reported against this plug-in, too?
Closing all TWAIN bugs as duplicates of "twain is broken", it is so broken that it doesn't make sense to keep more than one bug open for it. *** This bug has been marked as a duplicate of bug 143855 ***
Please reopen this Bug as this will be my next BugFix.
Great, thanks :)
Jens, do you work with git? It would be great it you did, because I just looked at the twain plugin, and it needs some other cleanups which I would do once your patches are in, so you would need git to stay up to date.
Michael, currently not. I don't have much experience with it, but will have a look in it - advices are welcome.
I have no clue what you would use on windows, why don't you just come to #gimp on irc.gimp.org, you will find the right people there.
Created attachment 204167 [details] [review] retrieve as many imgages from data source till it is close. This patch requires patches from https://bugzilla.gnome.org/attachment.cgi?id=204141 of #357818! It should now be possible to scan as many images form doc-feeder or single scans from one data source session. Checked under Win 7 64 bit Home Premium with Partha's gimp 2.7.4 64 bit. 32 Bit variant for windows and any Macintosh implementation *not* tested!
It would be a shame to let this bitrot, setting to 2.8 so we remember.
Let's definitely try this on top of bug 357818 and its corresponding bug-357818 branch for 2.10.
Applied rather cleanly, will push the branch later.
If someone wants to try, check out the bug-601821 branch. You are expected to have a confirmed working (i.e. you can use it with GIMP 2.8 or git master) TWAIN source, e.g. a scanner or camera, to test it. Note that this will also introduce the changes of the bug-357818 branch, which modernizes the TWAIN plug-in.
Comment on attachment 204167 [details] [review] retrieve as many imgages from data source till it is close. Applied in the branch mentioned in comment 12, but a successful test hasn't been done yet.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gimp/issues/316.