Describe the bug
When "Deskew scanned pages" post-processing option is enabled in a scan profile, the file size of the scanned PDF is many times larger than when this option is disabled.
This problem occurs in release 7.3.1.0. For example, a black and white one-page scan at 300 dpi is 54 kb without deskew, but 732 kb with deskew enabled. In the 7.2.2 release, there is almost no difference between file sizes (54k vs 52k).
To Reproduce
Steps to reproduce the behavior:
Install naps2-7.2.2-linux-x64.deb on Debian 12.
Create a scanner profile for the Canon MX-470 scanner: SANE driver, Paper source = Glass, Bit depth = Black and white, Page size = US Letter, Resolution = 300 dpi. Ensure that "Deskew scanned pages" box ("Advanced" button) is NOT enabled.
Scan a single page on the flatbed.
Observe the file size.
Change the scanner profile by enabling "Deskew scanned pages".
Scan the same page again on the flatbed.
Observe that the file size is approximately the same as the non-deskewed scan.
Install/upgrade to naps2-7.3.1-linux-x64.deb on Debian 12.
Repeat steps 2-7.
Observe that the file size of the deskewed scan is much larger than the non-deskewed scan.
Expected behavior
The file sizes should be nearly the same (if the scan does not need much de-skewing).
Screenshots
Desktop (please complete the following information):
OS: Debian 12 ("Bookworm")
Version Kernel: Linux 6.1.0-16-amd64
Additional context
Upon request, I can upload sample PDF's demonstrating the problem.
This should be fixed in 7.4.0. (I don't think there's a difference between 7.2.2 and 7.3.1, it would just be related to whether the deskewing actually ended up detecting a rotation).
Describe the bug When "Deskew scanned pages" post-processing option is enabled in a scan profile, the file size of the scanned PDF is many times larger than when this option is disabled.
This problem occurs in release 7.3.1.0. For example, a black and white one-page scan at 300 dpi is 54 kb without deskew, but 732 kb with deskew enabled. In the 7.2.2 release, there is almost no difference between file sizes (54k vs 52k).
To Reproduce Steps to reproduce the behavior:
Expected behavior The file sizes should be nearly the same (if the scan does not need much de-skewing).
Screenshots
Desktop (please complete the following information):
Additional context Upon request, I can upload sample PDF's demonstrating the problem.