alexpevzner / sane-airscan

Scanner Access Now Easy - universal driver for eSCL (Apple AirScan) and WSD
Other
267 stars 38 forks source link

Using WSD seems to always request the entire scan surface regardless of selected scan region (at least on HP DeskJet 5000) #162

Open cipriancraciun opened 2 years ago

cipriancraciun commented 2 years ago

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:

alexpevzner commented 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?

cipriancraciun commented 2 years ago

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: