After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 601821 - Retrieve multiple images from TWAIN data source (primarily multiple pages from a scanner document feeder)
Retrieve multiple images from TWAIN data source (primarily multiple pages fro...
Status: RESOLVED OBSOLETE
Product: GIMP
Classification: Other
Component: Plugins
2.6.7
Other Windows
: High normal
: 2.10
Assigned To: GIMP Bugs
GIMP Bugs
Depends on: 357818
Blocks:
 
 
Reported: 2009-11-13 17:37 UTC by Joris
Modified: 2018-05-24 12:42 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
retrieve as many imgages from data source till it is close. (19.62 KB, patch)
2011-12-24 08:57 UTC, Jens M. Plonka
reviewed Details | Review

Description Joris 2009-11-13 17:37:51 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)
Comment 1 Michael Schumacher 2009-11-13 18:12:25 UTC
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?
Comment 2 Michael Natterer 2011-03-18 00:03:46 UTC
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 ***
Comment 3 Jens M. Plonka 2011-12-17 14:09:10 UTC
Please reopen this Bug as this will be my next BugFix.
Comment 4 Michael Natterer 2011-12-17 15:32:09 UTC
Great, thanks :)
Comment 5 Michael Natterer 2011-12-17 15:36:06 UTC
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.
Comment 6 Jens M. Plonka 2011-12-17 15:55:38 UTC
Michael, currently not. I don't have much experience with it, but will have a look in it - advices are welcome.
Comment 7 Michael Natterer 2011-12-17 19:43:34 UTC
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.
Comment 8 Jens M. Plonka 2011-12-24 08:57:08 UTC
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!
Comment 9 Michael Natterer 2012-03-02 20:15:51 UTC
It would be a shame to let this bitrot, setting to 2.8 so we remember.
Comment 10 Michael Schumacher 2016-06-14 08:06:24 UTC
Let's definitely try this on top of bug 357818 and its corresponding bug-357818 branch for 2.10.
Comment 11 Michael Schumacher 2016-06-14 11:53:33 UTC
Applied rather cleanly, will push the branch later.
Comment 12 Michael Schumacher 2016-09-09 07:57:44 UTC
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 13 Michael Schumacher 2017-02-14 13:44:33 UTC
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.
Comment 14 GNOME Infrastructure Team 2018-05-24 12:42:56 UTC
-- 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.