Someone handed me a number of terrible photos (2976×3968) of handwritten pages
- the background is dark gray
- the writing is not properly black
- the writing is blurry and out of focus
to have their work graded by me but I have difficulties reading what is written if I fit one page to the width of my screen.
I cannot post a whole image because its size exceeds the maximum size allowed on SE sites and also due to privacy concerns, but I'm posting a smaller screenshot of a portion of one of these pages
what can I do to scale the images to the width of my screen and clean the problems on the way, from the command line? (I could clean up each photo in Gimp, but "I'd prefer not to")
Probably something with Imagemagick, but what, exactly?
Edit #1
In Gimp I'd play with the "Color Levels" adjusting the white point, with "Curves" to adjust the image gamma, and I'd try the "erode" plugin to recover a bit of line width.
Edit #2
XUbuntu installed in August