<div dir="ltr"><div dir="ltr">Hi Jeff,<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jun 9, 2021 at 10:04 AM Jeff <<a href="mailto:jffry@posteo.net">jffry@posteo.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">There is a gscan2pdf user with a Fujitsu scanner who has found a bug in <br>
gscan2pdf:<br>
<br>
<a href="https://sourceforge.net/p/gscan2pdf/mailman/message/37297482/" rel="noreferrer" target="_blank">https://sourceforge.net/p/gscan2pdf/mailman/message/37297482/</a><br>
<br>
I'm guessing it is a corner case to do with the scanner setting <br>
SANE_INFO_INEXACT when the user sets most geometry options.<br>
<br>
I am having trouble reproducing the problem locally because I don't have <br>
a similar scanner, and my HP doesn't set SANE_INFO_INEXACT.<br>
<br>
The test backend has an option "read-return-value", allowing frontend <br>
developers to test statuses, but I can't find a similar option for info <br>
values.<br>
<br>
Is there some other way of testing info values in frontends?<br>
<br>
If not, is there a maintainer for the test backend?<br>
<br>
If so, would you be able to add such an option?<br>
<br>
If not, would you be open to a patch to add such an option?<br>
<br>
Regards<br>
<br>
Jeff<br>
</blockquote><div>I have added a new test option to the test backend called int-inexact. There is a Merge Request here:</div><div><br></div><div><a href="https://gitlab.com/sane-project/backends/-/merge_requests/633">https://gitlab.com/sane-project/backends/-/merge_requests/633</a></div><div><br></div><div>Feel free to compile it and give it a try.</div><div><br></div><div>Example usage:</div><div><br></div><div>scanimage -A -d test:0 --enable-test-options=yes --int-inexact=16</div><div><br></div><div>The option takes any value that you specify, increments it and sets the SANE_INFO_INEXACT flag.</div><div>The output in this case from scanimage now shows this:</div><div><br></div><div>scanimage: rounded value of int-inexact from 16 to 17</div><div><br></div><div>and</div><div><br></div><div> --int-inexact <int> [17] [advanced]<br> (6/6) Int test option that modifies the value and returns<br> SANE_INFO_INEXACT.</div><div><br></div><div>I just noticed that there are some ordering issues in the existing backend which I will fix. There are actually 7 int options, but they appear to be spread out weirdly.</div><div><br></div><div>If it looks good to you, I will merge it and then it should appear in the PPA probably about a day later.<br></div><div><br></div><div>Cheers,</div><div>Ralph<br> </div></div></div>