<div dir="ltr"><div>With some brands of scanners, there can be limitations in things like resolution or bit depth when you enable larger size scans. So, be careful assuming you want to always use that mode.</div><div><br></div><div>allan<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Aug 31, 2022 at 12:58 PM Ralph Little <<a href="mailto:skelband@gmail.com">skelband@gmail.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"><div dir="ltr"><div dir="ltr">Hi,<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Aug 30, 2022 at 10:36 PM Sean Greenslade <<a href="mailto:sean@seangreenslade.com" target="_blank">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">Hi, all. I recently picked up an Epson ES-50 sheet-feed scanner. My<br>
intent is to use it for receipt scanning, so I tried it out with a <br>
~700 mm long receipt and found that it would error out at around 450 mm<br>
into the scan. The manual claims the scanner is capable of a max of 72<br>
inch document length, so I started poking around in the epsonds backend<br>
code.  Something that jumped out at me was the eds_set_adf_area<br>
function. It seems that for this particular scanner, three ADF size<br>
values are reported: AREA, AMIN, and AMAX (in epsonds-cmd.c around line<br>
445 on current git master). The eds_set_adf_area function is called with<br>
the values from AREA, which limits the document length to 14 inches. I'm<br>
assuming AREA is just meant to be a default value, but if anyone has any<br>
deeper insight into the meaning, I'd be interested to know.<br></blockquote><div><br></div><div>Looking at that code, AMIN and AMAX are pretty much ignored.</div><div>What do you get for all of the AREA/AMIN/AMAX parameters?</div><div>Perhaps we can figure out what they mean and code up something a little better?<br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
The AMAX values reported seemed to match the manual's reported 72-inch<br>
maximum, so on a whim, I just moved the eds_set_adf_area call to the<br>
AMAX section. After recompiling, I was able to scan my long receipt no<br>
problem.<br>
<br>
Now I'm wondering if there is any downside to using the max ADF size? If<br>
not, would you consider the attached patch?<br>
<br></blockquote><div><br></div><div>I don't believe that we have a current maintainer for this backend although we do get some submissions from Epson Japan now and then for new models. I wonder if they would be willing to shed some light on this or provide us some documentation on this aspect of the protocol?</div><div><br></div><div>Cheers,</div><div>Ralph <br></div></div></div>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature">"well, I stand up next to a mountain- and I chop it down with the edge of my hand"</div>