Closed danielk117 closed 8 months ago
I'll have a look at that, but an off-topic question - how did you install sane-backends? Was that from homebrew etc or built from the latest source?
Yes, I installed it using homebrew. It's not the latest source, but the latest released version 1.2.1.
I've got a hint from the SANE project (see https://gitlab.com/sane-project/backends/-/issues/476#note_1735474004):
t,l,x,y are constrained by page-width and page-height. You must tell the scanner how big the paper is, before you tell it how big the image will be
When calling scanimage --page-width 210mm --page-height 297mm --help
, I get the follow output (and new maximum values for -l/-x and -t/-y):
Geometry:
--page-width 0..224.846mm (in steps of 0.0211639) [210.01]
Specifies the width of the media. Required for automatic centering of
sheet-fed scans.
--page-height 0..879.489mm (in steps of 0.0211639) [296.994]
Specifies the height of the media.
-l 0..210.01mm (in steps of 0.0211639) [0]
Top-left x position of scan area.
-t 0..296.994mm (in steps of 0.0211639) [0]
Top-left y position of scan area.
-x 0..210.01mm (in steps of 0.0211639) [210.01]
Width of scan-area.
-y 0..296.994mm (in steps of 0.0211639) [296.994]
Height of scan-area.
Hi, I have the same effect with my Canon DR-M140 scanner under debian 12 and naps2 7.3 with sane driver. Seems that naps2 has an internal limit for br-y at 279mm which cannot be exceeded by specifying papersize dimensions. With this limitation, naps2 will be relatively useless in Europe, for here most documents are DIN A4, therefore it would be great if this bug could be fixed. I'm in doubt wether this is a sane bug, for scanning works perfect with the sane driver under e.g. xsane or simple-scan...
@rwobrecht I don't know which platform you're using, but if it is a Mac too, than I've got workaround.
I've build AirSane and using the "apple driver" in NAPS2. It seems that AirSane also reads the top-left and bottom-right values from SANE and has problems with the larger page size, like NAPS. But in Airsane you're able to set options (see SimulPiscator/AirSane#64) and overriding the defaults (on mac with homebrew the option file is located under /usr/local/etc/airsane/options.conf
).
This should be fixed in 7.3.1.
I've also created a SANE issue for the root cause: https://gitlab.com/sane-project/backends/-/issues/730
Am Sonntag, dem 04.02.2024 um 20:09 -0800 schrieb Ben Olden-Cooligan:
This should be fixed in 7.3.1. I can confirm the fix is working in Debian 12.4, kernel 6.1.0-17-amd64
Thanks!
I've also created a SANE issue for the root cause: https://gitlab.com/sane-project/backends/-/issues/730 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>
Yes, in 7.3.1 it is working. Thank you for fixing!
Describe the bug I'm not able to scan page height above 279.364mm, but the scanner and the SANE driver support it! Very basic example above 279.364mm is DIN A4, which has a page height of 297mm.
To Reproduce Steps to reproduce the behavior:
Expected behavior The scan contains the full content of the A4 pape.
Screenshots
Desktop (please complete the following information):
Additional context
I've enabled the debug logging in NAPS2 and it seems, that it is limiting the page height values to 279.364mm.
When I'm configuring a custom page size of 210x210mm for example, the log shows:
Everthing working as expected. I've got a scan with 210x210mm.
When setting page size as A4, the log shows:
So I've installed
sane-backends
and tried scanning withscanimage
.scanimage --help
shows me, that I'm able to scan width until 224.846mm and height until 879.489mm. The width of 215.872mm and height of 279.364mm are presetted for page size and the max values for -l/-x or -t/-y.So when I use
scanimage -d fujitsu:fi-6130dj:4953 --source "ADF Duplex" --page-width 210mm --page-height 297mm --format=jpeg -o scan3.jpg
, it scans the whole A4 page. No missing area at the end.So I think (with my very limited knowledge about NAPS2 and SANE), NAPS2 just sets top-left x/y and bottom-right x/y positions and limit these values, as expected. But page width and height is never set.