<div dir="ltr"><div dir="ltr">Hi,<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Aug 31, 2022 at 12:26 PM Sean Greenslade <<a href="mailto:sean@seangreenslade.com">sean@seangreenslade.com</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">On Wed, Aug 31, 2022 at 09:34:55AM -0700, Ralph Little wrote:<br>
> Hi,<br>
> <br>
> On Tue, Aug 30, 2022 at 10:36 PM Sean Greenslade <<a href="mailto:sean@seangreenslade.com" target="_blank">sean@seangreenslade.com</a>><br>
> wrote:<br>
> ...<br>
> Document size:<br>
> Maximum: 8.5 × 72 inches (215.9 × 1828.8 mm)<br>
> Documents scanned at 301 dpi or more: up to 8.5 × 14 inches (215.9 × 355.6 mm)<br>
> Minimum: 2 × 2 inches (50.8 × 50.8 mm)<br>
<br>
So Allan's point in his reply is probably valid: the AMAX is only usable<br>
at the 200 dpi resolution. And indeed, I just tried a large scan at 600<br>
dpi with my patch and it fails once the paper exceeds 14 inches. So this<br>
is indeed more complicated than my simple patch.<br>
<br>
Does anyone know offhand if there are facilities in the sane APIs for<br>
different scan sizes per supported resolution? I see the TL_X/Y and<br>
BR_X/Y, but it seems like the API assumes that those values are fixed<br>
for a given scanner.<br>
<br></blockquote><div><br></div><div>Typically, SANE options are adjusted by amendments to others.</div><div>So if you change the resolution or source, other options and/or their respective limits are amended accordingly. So, for example, if you change the res to 600dpi, then upper limit on height would change to the lower limit and if the currently selected value for height exceeded that limit it would be adjusted downward.</div><div><br></div><div>There are specific flags in the option definitions to indicate this to the frontend as well. So if an option is changed that affects other options, a flag is set to information the frontend to re-acquire values and attributes of the other options to get any changes.</div><div><br></div><div>Cheers,</div><div>Ralph<br></div></div></div>