Please check out the corresponding blog post:
https://s.danielbkr.net/pdf-scan-opti...
I really didn't spend much time on this UI.... if there is enough interest I might clean it up.
The main differentiator is
this process scales to hundreds of pages
as well as higher accuracy because you can manually tweak individual pages.
For me it is worth spending 15minutes if that means the final printed booklet is easier to read for sight-reading.
The example file in the video is terrible quality to begin with.. and I wouldn't normally bother with such a file (there are typically many alternative files for the same piece on IMSLP.com, just a matter of finding a decent quality scan and then applying the series of commands to get a final output that is high contrast, cropped and straightened.
On this page of the site you can watch the video online Optimising PDF Scanned Documents using Linux GNU Parallel, ImageMagick Convert and Python Tkinter UI with a duration of hours minute second in good quality, which was uploaded by the user danobot 09 June 2023, share the link with friends and acquaintances, this video has already been watched 225 times on youtube and it was liked by 5 viewers. Enjoy your viewing!