Page 1 of 1

How to prevent jagged edges when converting to TIFF monochrome?

Posted: Sun Jul 28, 2024 4:45 am
by Bhm
Hi all,

I'm currently working on a color scan of a page of sheet music, to be converted to TIFF monochrome. But no matter what settings I choose for conversion (in Irfanview), I get something like the zoomed-in view of the provided image. What should I do to make the edges smoother?

Re: How to prevent jagged edges when converting to TIFF monochrome?

Posted: Sun Jul 28, 2024 5:00 am
by Sallen112
So the best program that we use to post-process images like this to smooth out the jagged black pixels in the ink is to use Scantailor (or the Advanced Version) is what we use here: https://github.com/4lex4/scantailor-advanced/releases

1.0.16 is an older version, but there is also 1.0.19, which has some more post-processing features, like some more threshold options.

https://github.com/ScanTailor-Advanced/ ... ag/v1.0.19

You will want to input the TIFF file types into the program and it outputs the same filetype, then you can put them into a PDF afterwards.

Re: How to prevent jagged edges when converting to TIFF monochrome?

Posted: Sun Jul 28, 2024 5:32 am
by Bhm
Unfortunately, when I try to use Scan Tailor 1.0.19, I get an error message - "The procedure entry point CreateDXGIFactory2 could not be located in the dynamic link library dxgi.dll." I'm assuming that this has to do with running an older version of Windows.

Fortunately, the version of Scan Tailor that I do have seems to do a similar job, so I can try to proceed with my documents now. Thank you!

Re: How to prevent jagged edges when converting to TIFF monochrome?

Posted: Sun Jul 28, 2024 5:39 am
by Sallen112
Try 1.0.16, that version is stable.

Re: How to prevent jagged edges when converting to TIFF monochrome?

Posted: Tue Jul 30, 2024 6:06 am
by coulonnus
At which resolution are you? Did you choose a low resolution for your example? Try 600 dpi.

Then with imagemagick, say magick page.jpg -convolve 2,10,14,10,2,10,14,14,14,10,14,14,14,14,14,10,14,14,14,10,2,10,14,10,2 newpage.jpg

Then convert it to TIF monochrome. It is interesting to compare the TIF size with and without the magick operation.