Open cipriancraciun opened 2 years ago
Hi @cipriancraciun,
my Kyocera ECOSYS M2040dn incorrectly handles scan region in the WSD mode, so really, sane-airscan in the WSD mode always requests the entire scan surface and then performs image cropping in software. In the eSCL mode all known so far devices handle scan region correctly, so in this mode sane-airscan relies on hardware cropping,
I guess, your problem will be fixed, if on the eSCL mode sane-airscan also will rely on software cropping, at least for your device, correct?
I guess, your problem will be fixed, if on the eSCL mode sane-airscan also will rely on software cropping, at least for your device, correct?
@alexpevzner, I understand there are thousands of scanners out there, each with its own quirks and bugs, thus I don't think there is an "optimal" / "best" solution that would cover all.
However I personally would take the following approach:
airscan
always do the "correct" thing by default, according to the documentation (i.e. always use scan regions both in WSD and eSCL);
I have an wireless "HP DeskJet All-in-One 5000 Series" (actually 5075) that supports both WSD and eSCL, and from my limited experiments I've seen that when using WSD,
airscan
seems to always explicitly request the entire scan surface regardless of the requested scan region.I base my conclusions on the following:
scanimage
with and without-x 100 -y 100
(or some other values) at various DPI's (300, 600, 1200);airscan
always requests for the entire scan surface (i.e. larger than my requested region, and regardless of it);hpaio
) so that when one asks anything less than the entire scan area, it will try to do edge detection, and thus apply an extra crop followed by an internal software resize to match the expected pixel size; in comparison all images scanned via WSD seem not to have this bug;