How to eliminate non-uniform yellowing from a HathiTrust scan before converting to monochrome?
Posted: Thu May 28, 2026 4:37 pm
Hi all,
I'm working on a score from HathiTrust in preparation for uploading it to IMSLP.* It's not already monochrome or even grayscale, so I'm running it through ScanTailor to convert it to monochrome as well as set uniform page sizes. (I already removed the Google watermarks.)
Of course, some of the pages are yellowed, but my issue is the non-uniformity of the yellowing on some of the pages (example).** In ScanTailor, if I change the Threshold Method from Otsu (default) to Sauvola or Wolf, I can avoid the really overt smudging in the bottom-right. Overall, I would even say it's a decent scan. But the bottom-right is still too dark (filled-in accidentals), and the center of the page is still too light (broken staff lines).
I've tried adjusting the other Threshold parameters, but without any success. Ultimately, I think the problem is that the scan is simply not uniform; the inside edge is darker, yellower, than the rest. So, I was wondering if there were any ways to pre-process the image to correct the non-uniformity of the background before going to ScanTailor. I don't just mean de-yellowing; that's the idea, but I mean getting rid of the gradient background on the right without affecting the middle, which is okay as it stands.
*Technically, the score is already on IMSLP, but the existing IMSLP scan has a lot of overwritten material—sometimes entire systems at once. So, I'm trying to make the original edition available without alterations.
**Admittedly, a lot of scans from HathiTrust look like this, so I'm a bit surprised that I couldn't find this question asked here before.
I'm working on a score from HathiTrust in preparation for uploading it to IMSLP.* It's not already monochrome or even grayscale, so I'm running it through ScanTailor to convert it to monochrome as well as set uniform page sizes. (I already removed the Google watermarks.)
Of course, some of the pages are yellowed, but my issue is the non-uniformity of the yellowing on some of the pages (example).** In ScanTailor, if I change the Threshold Method from Otsu (default) to Sauvola or Wolf, I can avoid the really overt smudging in the bottom-right. Overall, I would even say it's a decent scan. But the bottom-right is still too dark (filled-in accidentals), and the center of the page is still too light (broken staff lines).
I've tried adjusting the other Threshold parameters, but without any success. Ultimately, I think the problem is that the scan is simply not uniform; the inside edge is darker, yellower, than the rest. So, I was wondering if there were any ways to pre-process the image to correct the non-uniformity of the background before going to ScanTailor. I don't just mean de-yellowing; that's the idea, but I mean getting rid of the gradient background on the right without affecting the middle, which is okay as it stands.
*Technically, the score is already on IMSLP, but the existing IMSLP scan has a lot of overwritten material—sometimes entire systems at once. So, I'm trying to make the original edition available without alterations.
**Admittedly, a lot of scans from HathiTrust look like this, so I'm a bit surprised that I couldn't find this question asked here before.