simon-knuth / scanner

An all-in-one scanner app built for the Universal Windows Platform
https://simon-knuth.github.io/scanner/index
Mozilla Public License 2.0
476 stars 28 forks source link

Allow scaling scans down before saving to file #45

Open adrianghc opened 2 years ago

adrianghc commented 2 years ago

Is your feature request related to a problem? Please describe. I always scan pages in 300 dpi because 100 dpi results in too low of a quality. However, this comes at the tradeoff of 300 dpi scans having gigantic dimensions, so that when opening a 300 dpi PDF scan, you have to zoom out before you can see the document properly.

Describe the solution you'd like It would be great if the scanner could mitigate this by allowing an option to scale down. In order to reduce unnecessary complexity, I think it would suffice if it were possible to scale down 300 dpi scans to one third of their size, such that the end result will have the dimensions of a 100 dpi scan but the quality of a 300 dpi scan.

Describe alternatives you've considered Scaling down the scan manually, this would be easy enough for images of course, but it does become a hassle when directly scanning to a PDF.

simon-knuth commented 2 years ago

Hey there, thank you for this feedback as well! You're right, I was able to reproduce this with the Xodo PDF viewer, some apps don't seem expect these PDF sizes. Unfortunately I won't be able to improve this soon, for two reasons:

  1. I'm not yet sure I'd want to hide this behavior, which would mean that it'd somehow be exposed in the interface. That's not great, because this is way too complicated for the overwhelming majority of users. I'll have to test and see whether there is a one-size-fits all solution when I get to this and whether there might be any trade-offs.
  2. I'm not comfortable with touching the PDF implementation. I originally planned to rebuild it when I migrate the app to the new Windows App SDK but since Windows Ink won't be available there until sometime in 2022 (🙄), the PDF implementation will remain unchanged for v3.0.

Sorry for the bad news, but I'll probably revisit this when the SDK is ready and I'm touching up the PDF code anyway!

adrianghc commented 2 years ago

Don't worry about it, thank you for your response. I understand and appreciate your reasoning. :)