Bug 464335 - Switching "Scan source" resets "Scan area size"
Summary: Switching "Scan source" resets "Scan area size"
Status: RESOLVED FIXED
Alias: None
Product: Skanpage
Classification: Applications
Component: general (other bugs)
Version First Reported In: 23.08.1
Platform: Other Linux
: NOR minor
Target Milestone: ---
Assignee: Alexander Stippich
URL:
Keywords: usability
: 501877 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-01-15 18:32 UTC by danoss
Modified: 2025-04-08 03:54 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description danoss 2023-01-15 18:32:04 UTC
When I'm scanning a batch of documents, I switch my Scan Source between Flatbed and ADF. Doing this undesirably resets the Scan Area Size from my selection (Letter) to the default (Custom, which seems to be the largest possible scan area for my device).

The ideal behavior is to retain the Scan Area Size despite changes to other settings.

This is a minor annoyance, and worst case I just re-scan a document after correcting the size setting. I reported 22.12.1 because it's what I'm running, but my memory is that all past versions of Skanpage also have this quirk.
Comment 1 John Kizer 2023-09-21 01:39:46 UTC
Just to confirm, this still seems to be the behavior on version 23.08.1 - the DPI is also reset on my setup.
Comment 2 Alexander Stippich 2024-03-29 12:38:45 UTC
Which scanner devices are you using? It probably boils down to the SANE backend resetting the options to defaults values when switching the scan source.
Comment 3 John Kizer 2024-03-29 17:51:33 UTC
(In reply to Alexander Stippich from comment #2)
> Which scanner devices are you using? It probably boils down to the SANE
> backend resetting the options to defaults values when switching the scan
> source.

For me personally, an HP OfficeJet using the hpaio device type. And that may very well be true, that Skanpage is interacting more directly with the SANE backend. FWIW simple-scan doesn't seem to reset in the same way, but might not be directly interacting with SANE while changing individual preferences in the same way as Skanpage?
Comment 4 danoss 2024-04-21 16:35:19 UTC
Mine is a Brother MFC-L2700DW. Like John noted, this doesn't happen with Simple Scan, even 5+ years ago when Simple Scan wasn't as Canonical-polished as it is now.

If the SANE backend is resetting this, I think it would make sense for Skanpage to attempt to preserve the setting, as a feature to the user.
Comment 5 Bug Janitor Service 2025-02-01 18:34:32 UTC
A possibly relevant merge request was started @ https://invent.kde.org/libraries/ksanecore/-/merge_requests/27
Comment 6 Alexander Stippich 2025-02-04 17:53:47 UTC
Git commit efb128943e17d092aaeba86306efc6b507493c87 by Alexander Stippich.
Committed on 04/02/2025 at 17:52.
Pushed by astippich into branch 'master'.

re-evaluate page size option when options are reloaded
sizes may change with Flatbed and ADF scanners
also remember previous sizes and try to re-apply
Related: bug 498906, bug 460262

M  +5    -1    src/interface_p.cpp
M  +4    -0    src/interface_p.h
M  +105  -72   src/options/pagesizeoption.cpp
M  +4    -0    src/options/pagesizeoption.h

https://invent.kde.org/libraries/ksanecore/-/commit/efb128943e17d092aaeba86306efc6b507493c87
Comment 7 John Kizer 2025-04-08 03:54:56 UTC
*** Bug 501877 has been marked as a duplicate of this bug. ***