Hello everyody,
Best wishes for 2025 in advanced.
Just a thought why do we not use:
https://www.os2world.com/wiki/index.php/Tame/2
I seem to recall its possible to add scanners to this project ?
Or have I overlooked something ?
Roderick
Thank you, and the best of wishes to you as well.
Tame/2 is the most complete package out there, but why "add scanners"?
SANE at the time apparently didn't list found/attached scanner(s), nor their capabilities, right?
So that information had to be assembled into scanner.dat (see image)
Since a long time ago scanimage have had the capalibity to list attached/found scanners and their capablilites as it seem to me. Detection may have been easier on LapTops than on Workstations, but improved with later versions, though sigsegv appear with recent versions.
It wasn't always easy to find out how to state the settings to run scanimage, that has changed over the years, but the auto detection and listing improved things, if one was brave enough to run it on the command line.
This thread confirm that it is possible to do automatic detection of the scanner information and capabilities. It also indicate that I'm not alone to see one file output image format and crop issue aint isolated to my setup/equipment here.
In 2018 I had to look for something that could make it run with my workstation, but there where none. Looked at the project sane2twain that would be nice to combine, but it relied on a tweaked and specific version library that wouldn't allow updates easily.
I do dislike (think of a stronger series of words and curses) compiler specific calling conventions and versions that restrict updates of libraries. Things depending on libraries should be able to use whatever version is available, perhaps nag about it and mention the lack of capabilities, but not require a specific version to the second decimal. So I looked at writing my own, and did rewrite scanimage to the point where it output image data as pnm with defaults. I even bridged problems with calling conventions to some extent, but was unable to continue as my openwatcom compiled code at a late stage could not adjust/get the actual numbers for some setting in a gcc generated library. No I don't do gcc. (period)
Another possibility was to create a generic* library that would run the available scanimage.exe asyncrounously and control its output as it run. I still need more information how to create something that can both work with java.exe, sqlite3.exe and scanimage.exe etc. thus redirect, use and not block stdin, stdout and stderr.
One can of course use
scanimage -parameter|RXQUEUE
as in this specific case* as it doesn't require input on the command line, threaded as this to get output and progress as it appear.
*It has to be useful in more than with just one specific situation, version or application... reread the section about dislike for version specific libraries above!