Bug 460355 - Skanlite always scans “first“ auto-detected area after scan preview
Summary: Skanlite always scans “first“ auto-detected area after scan preview
Status: RESOLVED LATER
Alias: None
Product: Skanlite
Classification: Applications
Component: general (show other bugs)
Version: 22.08.1
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: Kåre Särs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-13 11:51 UTC by kleines Filmröllchen
Modified: 2022-10-18 19:55 UTC (History)
2 users (show)

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


Attachments
100% reproducible, but I might have an outdated system on this machine (339.35 KB, image/png)
2022-10-17 17:02 UTC, jakubby
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kleines Filmröllchen 2022-10-13 11:51:37 UTC
SUMMARY


STEPS TO REPRODUCE
1. Create a preview scan with an object that is likely to have two ore more auto-detected areas of content. I have found this to happen with thicker books on normal flatbed scanners, as Skanlite detects both the page content and the edge of the book as an area each.
2. Select the area that you want to actually scan, like the page content. In the UI, everything else in the preview appears dimmer, and the menu on the left shows correct values.
3. Click “scan”.

OBSERVED RESULT
On most occasions, Skanlite will scan one of the other auto-detected regions instead of the one that was clearly selected; even the “base settings” menu shows the correct x/y offset and size.

EXPECTED RESULT
Skanlite should disregard any and all regions that are not selected.
Comment 1 jakubby 2022-10-17 16:59:57 UTC
SUMMARY
Skanlite content auto-detection is working fine.
But it automatically selects the detected elements for content cropping when trying to make a full scan.
There are 2 problems with this:
1. It autoselects elements.
2. Only the element at the top gets selected.

STEPS TO REPRODUCE
1. Click Preview.
2. Click Scan.

OBSERVED RESULT
Skanlite automatically selects the detected elements for content cropping when trying to make a full scan.
Only top element is selected.
Scanned document is a tiny portion of the document.

EXPECTED RESULT
Whole document gets scanned unless user selects elements for cropping.

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.25.5
KDE Frameworks Version: 5.98.0
Qt Version: 5.15.6
Comment 2 jakubby 2022-10-17 17:02:18 UTC
Created attachment 152952 [details]
100% reproducible, but I might have an outdated system on this machine
Comment 3 Kåre Särs 2022-10-18 19:55:19 UTC
This was an unfortunate design decision at the time, to make it default on.... You can disable the automatic selection in the Skanlite settings. You can also clear all selections with the clear-selections button.

For the Qt6 version I think we will make automatic selection not be turned on by default.