View Single Post
Old 03-17-2017, 09:07 PM   #2
willus
Fuzzball, the purple cat
willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.
 
willus's Avatar
 
Posts: 1,303
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
Quote:
Originally Posted by mike.foster View Post
Hi,

I have a book whose pages are yellow/brown-ish (sample). It's for reading with an iPad. What command can I use with k2pdfopt to increase the contrast (no need to shrink)?
Code:
 k2pdfopt -mode copy -c- -cmax 3 myfile.pdf
You can increase the cmax value if you like. This worked pretty well on your image. Make the value negative to force it (when it is positive, it just acts as a ceiling--k2pdfopt tries to pick an optimum).
Edit #1: See attachment for your sample (page 1) and the conversion (page 2).
Edit #2: Out of curiosity, I added to the attachment the default conversion done by Scan Tailor (v0.9.11.1) on page 3.
Attached Files
File Type: pdf file_plus_conversion.pdf (1.10 MB, 590 views)

Last edited by willus; 03-17-2017 at 09:32 PM. Reason: Added / Modified attachment
willus is offline   Reply With Quote