I have scanned the pages of an old paperback of mine. The results are grayscale, 200dpi jpegs. Whilst the results are readable their general appearance leaves something to be desired; there are large areas of light brown (is this what is called foxing?). Is there any way of "whitening" the pages. Pushing up the contrast in Map>Adjust to the maximum of 127 does whiten the pages but it also markedly decreases the quality of the individual letters to such an extent that the original is preferable.
Examples of original (70A) and increased contrast (70B) are attached. Is there anything else I could try?
Improving the quality of a scanned old book
Moderators: XnTriq, helmut, xnview
Re: Improving the quality of a scanned old book
I find a Levels adjustment on a grayscale image [as yours already is] is generally a good start:Daguerre wrote:I have scanned the pages of an old paperback of mine. The results are grayscale, 200dpi jpegs. Whilst the results are readable their general appearance leaves something to be desired; there are large areas of light brown (is this what is called foxing?). Is there any way of "whitening" the pages. Pushing up the contrast in Map>Adjust to the maximum of 127 does whiten the pages but it also markedly decreases the quality of the individual letters to such an extent that the original is preferable.
I used XnView MP which allows the white point, black point, and also the gamma value to be adjusted directly, in my quick test I used these values which you may be able to improve on:
Black point = 55 ; Gamma = 0.30 ; White point = 130.
I also took the chance to erase two gray areas at the top of the page by, very quickly, copying and pasting a small area of clean background over the affected areas.
The limit to what can be achieved when enhancing a book page image like yours is ultimately set by the evenness [or rather unevenness...] of the illumination and the lower than ideal DPI value of 200.
Edit:
Not obviously a significant improvement on your result...
You might also look at reducing the colour depth to black and white (1-bit): although lower-DPI text generally degrades noticeably, that isn't particularly apparent on the above images, and there can be a large reduction in file size when saved as a TIFF with 'Fax' CCITT G4 compression, if that could be useful, 26kB for my image above. In general, though, the grayscale image will be better unless the scan DPI is raised significantly.
Re: Improving the quality of a scanned old book
Here's my shot at it:
- Image » Map » Posterize... » 2
- Image » Convert to Binary » Binary (No Dither)
- File » Export... » TIFF » CCITT G4
Re: Improving the quality of a scanned old book
Thanks for the replies. I shall have a look at XnView MP. However, I am starting to wonder if what I want is really possible. As far as I've ever been aware, increasing the contrast lightens the light areas and darkens the dark areas. Whilst this whitens the background, viewing the letters at increased magnification shows that the lighter bits that surround the letters are also removed which results in a much more jagged outline for the letters. Anyway, I'll persevere for a bit longer and see if I can find a happy medium
Re: Improving the quality of a scanned old book
As all pixels of a particular darkness value are treated equally, as far as I know, I think that is inevitable to an extent...Daguerre wrote:I am starting to wonder if what I want is really possible. As far as I've ever been aware, increasing the contrast lightens the light areas and darkens the dark areas. Whilst this whitens the background, viewing the letters at increased magnification shows that the lighter bits that surround the letters are also removed which results in a much more jagged outline for the letters.
Nonetheless, it is often possible to substantially enhance scans using these adjustments, whitening the background without seriously degrading the quality of the text.
You should be able to obtain noticeably better results if you scan at a slightly higher resolution such as 300 DPI, although using a flatbed scanner that will of course take longer. If file size is a consideration, scanning at 400 to 600 DPI should produce images that will reproduce satisfactorily in black, and white and have much smaller file sizes when suitable compression is used.
You may also well be able to obtain better results if you experiment to find the optimum scanner settings before making a series of scans, rather than as many people do simply using the default scanner settings.
Re: Improving the quality of a scanned old book
- Download George Fournaris' High Pass Sharpening filter.
- Extract the content of pphps.zip to the folder where you keep your Photoshop-compatible plug-ins.
- Open 70A.JPG in XnView.
- Increase the color depth of the greyscale image with Image → True Colour.
- Go to Filter → Adobe Photoshop Plug-In... → Photo-Plugins, select High Pass Sharpening... and hit the Start... button.
- Apply the filter with the following settings:
- Range (x10): 150
- Strength: 255
- Drop-down list: Normal
- High Pass view: Deactivated
- Go to Image → Adjust → Levels...:
- Black point: 0
- White point: 72
- Reduce the color depth with Image → Convert to Grey → 256 Grey scale.
- Go to Edit → Background colour... and choose R255/G255/B255.
- Optional: Go to Image → Rotate → Auto de-skew.
Re: Improving the quality of a scanned old book
Same method applied to 8168203700_1353405175.jpg …
View full-res … and adaptive-local-contrast-original.jpg …
View full-res … and text-from-book-big.jpg (sans Auto de-skew):
View full-res
View full-res … and adaptive-local-contrast-original.jpg …
View full-res … and text-from-book-big.jpg (sans Auto de-skew):
View full-res