Bug 457097 - Scanning letter sized pages adds a blank area to scanned image
Summary: Scanning letter sized pages adds a blank area to scanned image
Status: RESOLVED FIXED
Alias: None
Product: Skanpage
Classification: Applications
Component: general (show other bugs)
Version: 22.04.3
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Alexander Stippich
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-25 00:52 UTC by Pedro Rosado
Modified: 2023-05-18 23:48 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 23.04.2
Sentry Crash Report:


Attachments
Screenshot of Skanpage showing scanned image (432.05 KB, image/png)
2022-07-25 00:52 UTC, Pedro Rosado
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pedro Rosado 2022-07-25 00:52:34 UTC
Created attachment 150885 [details]
Screenshot of Skanpage showing scanned image

SUMMARY
***
Every time I try to scan a letter-sized page on my HP Envy 7855, the scanned image has an additional blank area almost the same size as the scanned page.
***


STEPS TO REPRODUCE
1. Start Skanpage
2. Place page on either the document feeder or the flatbed
3. Scan the page

OBSERVED RESULT
Image wit an additional black area

EXPECTED RESULT
Image of only the scanned page

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: openSUSE Tumbleweed
(available in About System)
KDE Plasma Version: 5.25.3
KDE Frameworks Version: 5.96.0
Qt Version: 5.15.5

ADDITIONAL INFORMATION
Comment 1 Joe 2022-09-06 17:36:07 UTC
I can also reproduce this easily on Arch. Changing back to a custom (which was previously working) also inserts the black section. So perhaps it is just triggered when changing page size in general?

Operating System: Arch Linux
Skanpage 22.08.0
KDE Plasma Version: 5.25.5
KDE Frameworks Version: 5.97.0
Qt Version: 5.15.5
Kernel Version: 5.19.3-arch1-1 (64-bit)
Graphics Platform: X11
Comment 2 Bug Janitor Service 2023-05-16 15:28:58 UTC
A possibly relevant merge request was started @ https://invent.kde.org/libraries/ksanecore/-/merge_requests/13
Comment 3 John Doe 2023-05-18 13:28:39 UTC
Git commit 857f9782b73d406436c32adb69bd307eddebdb54 by John Doe.
Committed on 16/05/2023 at 15:07.
Pushed by ngraham into branch 'master'.

Crop the image after a scan finished

This is necessary when the image was expanded with renewImage(),
that is the only place (I found) where the black region of

M  +27   -16   src/imagebuilder.cpp
M  +1    -0    src/imagebuilder.h
M  +1    -0    src/scanthread.cpp

https://invent.kde.org/libraries/ksanecore/commit/857f9782b73d406436c32adb69bd307eddebdb54
Comment 4 Nate Graham 2023-05-18 13:36:19 UTC
Git commit d3e2c41182d58b5ab1b22de75f78ce4e7f8f9c0c by Nate Graham, on behalf of John Doe.
Committed on 18/05/2023 at 13:34.
Pushed by ngraham into branch 'release/23.04'.

Crop the image after a scan finished

This is necessary when the image was expanded with renewImage(),
that is the only place (I found) where the black region of

(cherry picked from commit 857f9782b73d406436c32adb69bd307eddebdb54)

M  +27   -16   src/imagebuilder.cpp
M  +1    -0    src/imagebuilder.h
M  +1    -0    src/scanthread.cpp

https://invent.kde.org/libraries/ksanecore/commit/d3e2c41182d58b5ab1b22de75f78ce4e7f8f9c0c