Discussion:
Tame/2 upgrade : latest SANE drop
(too old to reply)
Dariusz Piatkowski
2012-03-11 22:55:44 UTC
Permalink
Hi Everyone!

I have been using Tame/2 1.0.5 (20070112) with my HP ScanJet 6390C (SCSI
processor "HP C7670A 3945" at b1t3l0) for quite some time now. It has been
working reliably, however, I noticed that Paul Smedley had a newer drop of SANE
(1.0.22) so I decided to upgrade.

Specifically, I took the latest EXEs and dropped them into the Tame/2 install
directory (along with the updated conf files, etc, etc - I then re-configured
hp.conf to recognize my scanner). This however has resulted in a creation of a
problem, which I'm hoping can be addressed.

The Tame/2 GUI allows me to select 'Grayscale' as one of the scanning options.
This was previously working fine with the delivered version of SANE (1.0.16),
however fails with 1.0.22.

TAME.LOG contains the following entry:

=== START ===
Start: 11 Mar 2012 16:02:26
Job: Scan to file
Command1: START /MIN /C SCANIMAGE.EXE -d hp --mode Grayscale --resolution 150
--format=tiff -l 0 -t 0 -x 215 -y 296 > G:\tmp\scanner\Image019.tif
Error: Size of image is 0 bytes. Check Sane installation or increase delay
time in Settings.
Warning: Job canceled by user!
End: 11 Mar 2012 16:02:41
=== STOP ===

...executing this directly from command line produces:

=== START ===
[G:\apps\graphics\tools\tame]SCANIMAGE.EXE -d hp --mode Grayscale --resolution 1
50 --format=tiff -l 0 -t 0 -x 215 -y 296 > G:\tmp\scanner\Image019.tif
SCANIMAGE.EXE: setting of option --mode failed (Operation not supported)
=== STOP ===

...researching further it appears that '--mode Grayscale' is no longer valid (see
URL => http://www.sane-project.org/man/scanimage.1.html)

=== START ===
All options specific to device `hp':
Scan Mode:
--preview[=(yes|no)] [no]
Request a preview-quality scan.
--mode Lineart|Halftone|Gray|Color [Lineart]
Selects the scan mode (e.g., lineart, monochrome, or color).
--resolution 12..3200dpi (in steps of 1) [300]
Sets the resolution of the scanned image.

=== STOP ===

So basically, it looks like Tame/2 1.0.5 is passing the wrong scan mode
argument, 'grayscale' instead of 'gray'.

Does anyone know how to control/define this? I see that TAME.INI file has
options for both...however only the 'wrong' value shows up in my install...short
of wiping out the INI file and re-trying (which is what I'll probably do next)
is there anything else that I can try?

Thanks!
Paul Smedley
2012-03-12 05:58:15 UTC
Permalink
Hi Dariusz,
Post by Dariusz Piatkowski
Hi Everyone!
I have been using Tame/2 1.0.5 (20070112) with my HP ScanJet 6390C (SCSI
processor "HP C7670A 3945" at b1t3l0) for quite some time now. It has been
working reliably, however, I noticed that Paul Smedley had a newer drop of SANE
(1.0.22) so I decided to upgrade.
Specifically, I took the latest EXEs and dropped them into the Tame/2 install
directory (along with the updated conf files, etc, etc - I then re-configured
hp.conf to recognize my scanner). This however has resulted in a creation of a
problem, which I'm hoping can be addressed.
The Tame/2 GUI allows me to select 'Grayscale' as one of the scanning options.
This was previously working fine with the delivered version of SANE (1.0.16),
however fails with 1.0.22.
=== START ===
Start: 11 Mar 2012 16:02:26
Job: Scan to file
Command1: START /MIN /C SCANIMAGE.EXE -d hp --mode Grayscale --resolution 150
--format=tiff -l 0 -t 0 -x 215 -y 296> G:\tmp\scanner\Image019.tif
Error: Size of image is 0 bytes. Check Sane installation or increase delay
time in Settings.
Warning: Job canceled by user!
End: 11 Mar 2012 16:02:41
=== STOP ===
<snip>
Post by Dariusz Piatkowski
So basically, it looks like Tame/2 1.0.5 is passing the wrong scan mode
argument, 'grayscale' instead of 'gray'.
Does anyone know how to control/define this? I see that TAME.INI file has
options for both...however only the 'wrong' value shows up in my install...short
of wiping out the INI file and re-trying (which is what I'll probably do next)
is there anything else that I can try?
You can load scanner.dat in an ini editor and modify it for your scanner.

I'm working on making the sane 1.0.22 package a little more user
friendly for use with Tame today - to make using hplip with Tame possible.

Cheers,

Paul
Andreas Kohl
2012-03-12 11:36:59 UTC
Permalink
Post by Paul Smedley
You can load scanner.dat in an ini editor and modify it for your scanner.
Thanks, this should be included in TAME and SANE docs. So I used an old
Primax Profi 9600 scanner supported by sane 1.0.22 (teco2 backend)
without TAME.
Post by Paul Smedley
I'm working on making the sane 1.0.22 package a little more user
friendly for use with Tame today - to make using hplip with Tame possible.
Could the dependency from USB???.DLL be removed if only SCSI scanners
going to be used.

--
Andreas
Paul Smedley
2012-03-13 08:13:21 UTC
Permalink
Hi Andreas,
Post by Andreas Kohl
Post by Paul Smedley
You can load scanner.dat in an ini editor and modify it for your scanner.
Thanks, this should be included in TAME and SANE docs. So I used an old
Primax Profi 9600 scanner supported by sane 1.0.22 (teco2 backend)
without TAME.
Post by Paul Smedley
I'm working on making the sane 1.0.22 package a little more user
friendly for use with Tame today - to make using hplip with Tame possible.
Could the dependency from USB???.DLL be removed if only SCSI scanners
going to be used.
It can if somebody contributes code to do this.

Cheers,

Paul
Dariusz Piatkowski
2012-03-14 01:18:09 UTC
Permalink
Hi Paul!
Post by Paul Smedley
Hi Dariusz,
Post by Dariusz Piatkowski
Hi Everyone!
I have been using Tame/2 1.0.5 (20070112) with my HP ScanJet 6390C (SCSI
processor "HP C7670A 3945" at b1t3l0) for quite some time now. It has been
working reliably, however, I noticed that Paul Smedley had a newer drop of SANE
(1.0.22) so I decided to upgrade.
Specifically, I took the latest EXEs and dropped them into the Tame/2 install
directory (along with the updated conf files, etc, etc - I then re-configured
hp.conf to recognize my scanner). This however has resulted in a creation of a
problem, which I'm hoping can be addressed.
The Tame/2 GUI allows me to select 'Grayscale' as one of the scanning options.
This was previously working fine with the delivered version of SANE (1.0.16),
however fails with 1.0.22.
=== START ===
Start: 11 Mar 2012 16:02:26
Job: Scan to file
Command1: START /MIN /C SCANIMAGE.EXE -d hp --mode Grayscale --resolution 150
--format=tiff -l 0 -t 0 -x 215 -y 296> G:\tmp\scanner\Image019.tif
Error: Size of image is 0 bytes. Check Sane installation or increase delay
time in Settings.
Warning: Job canceled by user!
End: 11 Mar 2012 16:02:41
=== STOP ===
<snip>
Post by Dariusz Piatkowski
So basically, it looks like Tame/2 1.0.5 is passing the wrong scan mode
argument, 'grayscale' instead of 'gray'.
Does anyone know how to control/define this? I see that TAME.INI file has
options for both...however only the 'wrong' value shows up in my install...short
of wiping out the INI file and re-trying (which is what I'll probably do next)
is there anything else that I can try?
You can load scanner.dat in an ini editor and modify it for your scanner.
OK, great hint...exactly what I was looking for...I'll check it out. This
appeared to have worked with your 20110226 drop of SANE 1.0.22, no longer works
with the 20120131 though.
Post by Paul Smedley
I'm working on making the sane 1.0.22 package a little more user
friendly for use with Tame today - to make using hplip with Tame possible.
Yeah...I gave it a try...but couldn't get that to run at all. For what it's
worth...I'm happy to help out with the testing efforts...email/post and I'll
happily plug away!

Thanks again for doing these updates...
Paul Smedley
2012-03-14 08:19:37 UTC
Permalink
Hi Dariusz,
Post by Dariusz Piatkowski
Post by Paul Smedley
I'm working on making the sane 1.0.22 package a little more user
friendly for use with Tame today - to make using hplip with Tame possible.
Yeah...I gave it a try...but couldn't get that to run at all. For what it's
worth...I'm happy to help out with the testing efforts...email/post and I'll
happily plug away!
Thanks again for doing these updates...
No problem - so long as it remains fun, I plan on keeping doing updates :)

Cheers,

Paul
Al Savage
2014-06-27 22:42:10 UTC
Permalink
On Mon, 12 Mar 2012 05:58:15 UTC, Paul Smedley
Post by Paul Smedley
Post by Dariusz Piatkowski
The Tame/2 GUI allows me to select 'Grayscale' as one of the scanning options.
So basically, it looks like Tame/2 1.0.5 is passing the wrong scan mode
argument, 'grayscale' instead of 'gray'.
Does anyone know how to control/define this?
You can load scanner.dat in an ini editor and modify it for your scanner.
Excellent suggestion, and one I used today, to change an errand "431" to
a "430" and eliminated a "rounding this down" message from scanimage.
It was cosmetic, but now it's gone.
--
Regards,
Al S.
Loading...