Re: only negative output with scanimage (Canon Canoscan 300)

Andreas Beck (becka@rz.uni-duesseldorf.de)
Fri, 21 May 1999 20:31:20 +0200

> Thanks for your help. In fact, I did not find any option that is
> available for my scanner and that could bring the --negative option
> active. Here are some of the outputs that I get when I run
> "scanimage -h -d canon:/dev/sgb" :

> Scan Mode:
> (...)
> --negative Negatives|Slides [inactive]
> Selects the film type, i.e. negatives or slides
> (...)
> Extra color adjustments:
> --negative[=(yes|no)] [yes]
> Swap black and white

ARGL ! There are two options called "negative". While this is of course no
problem for a GUI type app, as having to checkboxes is no problem, it _is_
a problem for commandline apps.

> So, the "--negative Negatives|Slides" option is inactive for my scanner, but
> the --negative[=(yes|no)] should be active though, when I try it, scanimage
> says that it is inactive.

Yes. As it is talking about the first one ...

> I wonder if the fact that both options get the same "--negative" name
> does not puzzle scanimage which then considers both of them as inactive
> as soon as one of them is

It rather considers the first one being in charge for all interaction with
it. But you basically got the point.

> (would it be a bug ?).

It is a backend bug to have two options with the same name. Maybe we should
document that in the SANE specs ... ???

Bug the backend maintainer about that. One option should be renamed.

> By the way, to temporarily work around this problem, does anyone know a
> program that can convert a negative pbm image into a positive one ?

pnminvert ?

CU, Andy

-- 
= Andreas Beck                    |  Email :  <andreas.beck@ggi-project.org> =

--
Source code, list archive, and docs: http://www.mostang.com/sane/
To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com