[sane-devel] Sane genesys Backend 1.0.24 CanoScan LiDE 210 and tiff scan format

Thorsten Müller thorsten at mueller-kleinheinz.de
Wed Jun 19 14:41:40 UTC 2013


Am Dienstag, 18. Juni 2013, 22:00:21 schrieb Stef:
> On 18/06/2013 21:22, m. allan noah wrote:
> >>      I eventually found the root of the problem. Two option groups
> >>      didn't
> >> 
> >> have there .cap value defined explicitly. This was working until it
> >> broke recently, possibly related to the use of a newer compiler.
> >> However I pushed a fix in git, and now this issue is fixed.
> > 
> > Sounds like we need to armor scanimage against this.
> > 
> > allan
> 
>      Hello,
> 
>      we can do:
> 
> diff --git a/frontend/scanimage.c b/frontend/scanimage.c
> index ce958df..5c52f45 100644
> --- a/frontend/scanimage.c
> +++ b/frontend/scanimage.c
> @@ -894,7 +894,7 @@ fetch_options (SANE_Device * device)
>            exit (1);
>          }
> 
> -      if (!SANE_OPTION_IS_SETTABLE (opt->cap))
> +      if (!SANE_OPTION_IS_SETTABLE (opt->cap) || opt->type ==
> SANE_TYPE_GROUP)
>          continue;
> 
>         option_number[option_count] = i;

This seems to solve the problem. Now scanimage does tiff scans again and 
includes the icc profile.

Thanks
Thorsten



More information about the sane-devel mailing list