Re: [sane-devel] hp5590: Scan aborts when using default page size

2014-05-29 Thread Olaf Meeuwissen
Rainer Keller writes: > Hi, > >> The SANE API only provides for SANE_UNIT_MM for lengths. Just looking >> at your patch, the *original* code seems to be correct. The real bug is >> somewhere else in the hp5590 backend. > > Ok, thanks for the hint. > Given that all lengths are in millimeters, is

Re: [sane-devel] hp5590: Scan aborts when using default page size

2014-05-29 Thread Rainer Keller
Hi, > The SANE API only provides for SANE_UNIT_MM for lengths. Just looking > at your patch, the *original* code seems to be correct. The real bug is > somewhere else in the hp5590 backend. Ok, thanks for the hint. Given that all lengths are in millimeters, isn't multiplying mm with dpi wrong

Re: [sane-devel] hp5590: Scan aborts when using default page size

2014-05-25 Thread Olaf Meeuwissen
Rainer Keller writes: > Hi, > > when doing a scan from ADF with default page size it will abort with an error: > >> scanimage --mode=Color --resolution=300 --source=ADF --verbose >/tmp/foo.pnm >> >> [hp5590] Top Y (0) + pixels Y (106680) exceedes max Y 4200 >> scanimage: sane_start: Invalid ar

[sane-devel] hp5590: Scan aborts when using default page size

2014-05-24 Thread Rainer Keller
Hi, when doing a scan from ADF with default page size it will abort with an error: > scanimage --mode=Color --resolution=300 --source=ADF --verbose >/tmp/foo.pnm > > [hp5590] Top Y (0) + pixels Y (106680) exceedes max Y 4200 > scanimage: sane_start: Invalid argument After some debugging I co