Quote:
Originally Posted by =X=
@ashkulz Here is a link This file is 17MB because it is already and image.
Also this effect is not tied to a specific PDF, it is observed on any given PDF,
=X=
|
OK, don't mind me butting in (
it IS my thread ), but I've made a simple change to PDFRead's use of the MinFilter to acheive better results on that .pdf file provided, IMHO.
The MinFilter can use a 3x3 matrix (default=3) or 5x5 matrix when doing its magic. I changed the dilation module's return value in process.py to:
Code:
return image.filter(ImageFilter.MinFilter(5))
That now results in thicker text prior to the resize which uses the Lanczos filter. However, on low-res .pdf it causes the text to blur too much. In that case, raise the initial 300 DPI to 400 or
500; 600 was very slow, but may be better?
Could you test to see which resulting .lrf (first 5 pages only) looks better on the hardware reader? (Sorry for the stretch of short pages, I still have to fix that one!!!) What about the comparison with PDFLRF now?
p.s. I provide the modified PDFRead bin files which should be placed in the bin directory and overwrite the existing files. Just take a backup first though should you wish to restore those original files.