scantailor-advanced
scantailor-advanced copied to clipboard
Convert image in picture zone to grayscale
In old books, the pages may be not white, but some sort of yellow or brown. If they contain grayscale images, the current export options are not really enough:
- I could export the page in black-and-white mode. This will lead to missing image details.
- I could export the page in mixed mode with the image being in color mode. This will lead to a yellowish image.
To fix this problem, I would like to have an option to convert the picture zones from the mixed content to grayscale. (Scanning or converting the original pages into grayscale mode is not really an option as this would require manual work beforehand if the book contains some colored images as well.)
Hi, @FriedrichFroebel .
:link: See also #120 .
:information_source: I convert to grayscale using netpbm.
information_source I convert to grayscale using netpbm.
May I ask how?
@gorgobacka say:
how?
:information_source: so:
mkdir g; for ttif in *.tif; do echo "$ttif"; anytopnm "$ttif" | ppmtopgm | pnmtotiff > "g/$ttif"; done
Thanks. I will try it.
PS: Sorry, for hijacking this issue.
@FriedrichFroebel, that is, you do not want to put aside the yellowness caused by old age, but to make the picture turn gray just like in a new book?
@d4fe As the original images have been grayscale (but the pages have been scanned in color mode), I want them to be grayscale afterwards, so basically yes.
It is possible that when converting pictures with yellowness to gray, a loss of contrast will occur. I would probably leave a color image in such cases, especially since the scan files are initially color.
The option to convert to grayscale should also be in "Color / Grayscale" output.