Digression
I will be frank with you for a moment: I won’t be able to deliver on what you ask. I have a challenging life and am here as an outlet for wholesomeness. Keeping in the theme of the season, I am one whom you would call the “least of these”.
Secondly, my filters are meant to be minimalist, though powerful, aren’t meant to be a full solution stack; of course, you may use it at any stage of your workflow. There are also plenty of free, open source and commercial products out there that are much more feature complete than my code.
As you may have noticed, I have been directing the discussion toward problem solving instead of relying on particular tools. Tools are interchangeable but not skill and experience. That said, your discussion has given me a sense of what to do next with this filter.
Lastly, I would like to reiterate the issue of copyright. It seems like you want to scan the whole textbook. Maybe not this particular one. Now, I won’t tell you what to do but I encourage you to honour those who made this textbook.
Back to the Q&A
@Reptorian says it is not. I don’t have time to explore Paint.NET
and will defer to his reply.
It is inaccurate because the processing is applied on the preview and its size and zoom level and whatever the plugin+app combo does to the preview. In other words, you aren’t filtering the actual image at all. For some filters, it is completely fine, but for more sophisticated ones, not so much or at all.
You listed a bunch of items. As long as the features aren’t too different in kind and shade, they should be preserved. Keep in mind that the filter does global processing and doesn’t have machine learning to detect objects and other advanced processing of that sort. It will most certainly not preserve the photographs. PDF conversion programs do multiple passes for different content. In any case, even the best apps and services have problems with this. It takes human intervention to get it right.
The Black and White parameters already allow you to narrow the grey scale range to a minimum. All you would need to do is apply a final threshold and convert the image to B&W, which is a very basic and simple thing to do and better left for the app’s native tools to do.
In terms of storage space, as hinted in a previous post, your goal should ultimately be OCR. Text costs nothing. Textbooks are mostly empty space anyway.
I can certainly improve the filter and no doubt I will eventually. However, many of these steps are things that you should look into yourself. Moreover, as said, high quality scanning would definitely help. Processing is only as good as the inputs it is given and how skilled and experienced the person doing it is.