Summary: | The selected page size (ex. A4) is immediately reset to Custom, if the scanner's dimensions for that page size are different from the standard by a rounding error | ||
---|---|---|---|
Product: | [Applications] Skanpage | Reporter: | Sergio <sergio.callegari> |
Component: | general | Assignee: | Alexander Stippich <a.stippich> |
Status: | RESOLVED FIXED | ||
Severity: | minor | CC: | john.kizer |
Priority: | NOR | ||
Version First Reported In: | 24.12.3 | ||
Target Milestone: | --- | ||
Platform: | Manjaro | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/libraries/ksanecore/-/commit/fd254a45bc56485da64cb3f8fdebb6cc485b5b59 | Version Fixed In: | |
Sentry Crash Report: |
Description
Sergio
2025-03-31 08:47:42 UTC
Hi - apologies if I'm misunderstanding, but is the request here for Skanpage to show that the scan area is a certain paper size if the actual coordinates is within a certain tolerance to the ones defined for that paper size? What would define "close enough" that could be applied across all users, devices and situations? Asking as I would imagine at least some instances in which exactness matters? Thanks! In the specific case, I don't think the actual tolerance value is very important. As said, some scanners may have minor tolerances with respect to some page formats. In my case, I have an HP standard that claims it can do A4 (21x29.7 cm), when in fact can only do (21x29.693), however it advertises A4. Hence, skanpage should not pretend "in general" that anything close to A4 is A4. Conversely, if A4 is among the supported page sizes, and the user asks for A4, it should say A4 even if the actual page size returned by the scanner is not really A4, but only close. Other tools (e.g., skanlite), don't even make the check. If the user asks for A4, they say A4. Making the check is in my opinion better (so if things are way too off the user can be alerted), but the tolerance can be relatively loose (e.g 1%). A possibly relevant merge request was started @ https://invent.kde.org/libraries/ksanecore/-/merge_requests/32 Git commit fd254a45bc56485da64cb3f8fdebb6cc485b5b59 by Alexander Stippich. Committed on 25/04/2025 at 19:06. Pushed by astippich into branch 'master'. remember the actual wiggle room per page size and use this information to track changes in the size options to not falsely switch to a custom page size. M +42 -33 src/options/pagesizeoption.cpp M +8 -2 src/options/pagesizeoption.h https://invent.kde.org/libraries/ksanecore/-/commit/fd254a45bc56485da64cb3f8fdebb6cc485b5b59 |