HaveF / papercrop

Automatically exported from code.google.com/p/papercrop
GNU General Public License v2.0
0 stars 0 forks source link

How can I change/modify the output quality? #11

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It would be useful to make configurable the quality of the output image.

Original issue reported on code.google.com by bbouzan on 13 Mar 2011 at 3:55

GoogleCodeExporter commented 9 years ago
Currently, you can change only the amount of gamma correction and the output 
resolution both by manually editing "config.lua".
If output quality is problematic for non-scanned PDF files, it would probably 
mean that the output resolution setting doesn't exactly match your ebook 
device. 
Most major ebook readers' optimal resolutions are slightly smaller than 
600x800. 
It is actually very tricky to find the right resolution that gives one-to-one 
pixel mapping, but this setting is critically important to get satisfactory 
results.
The only major ebook reader of which correct resolution I know is Kobo.
To fix this inconvenience, I would like to implement text-preserving PDF 
output, but I really don't have much time these days. 
If you are experiencing problems only with scanned documents, this could be 
because of the resampling algorithm of the PDF library poppler. The next 
version will include 4x super-sampling option that produce better quality 
outputs (only for scanned documents) though it works 4x slower.

Original comment by taesoob...@gmail.com on 13 Mar 2011 at 4:25