View Single Post
Old 09-29-2008, 12:36 AM   #106
nrapallo
GuteBook/Mobi2IMP Creator
nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.
 
nrapallo's Avatar
 
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
Quote:
Originally Posted by =X= View Post
@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.
Attached Thumbnails
Click image for larger version

Name:	pdfread-bierig-1-5.png
Views:	637
Size:	30.9 KB
ID:	16637  
Attached Files
File Type: lrf bierig-MinFilter-3.lrf (200.7 KB, 583 views)
File Type: lrf bierig-MinFilter-5-300.lrf (194.9 KB, 573 views)
File Type: lrf bierig-MinFilter-5-400.lrf (203.0 KB, 593 views)
File Type: lrf bierig-MinFilter-5-500.lrf (199.8 KB, 565 views)
File Type: lrf bierig-MinFilter-5-600.lrf (208.0 KB, 596 views)
File Type: lrf bierig-MinFilter-3-landscape.lrf (342.7 KB, 571 views)
File Type: zip pdfread-MinFilter5-mod-bin.zip (2.25 MB, 549 views)

Last edited by nrapallo; 09-29-2008 at 09:42 AM. Reason: added image showing settings used to create .lrf
nrapallo is offline   Reply With Quote