View Single Post
Old 04-02-2008, 11:11 PM   #16
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 GavinK151 View Post
Hi!

PDFread is very promising for reading CBRs on the Cybook, one thing I find odd however is that selecting the prc-mobi profile results in the pages having a huge white border round them.

I have tried defining the width and height manually but I get some odd results when I do this, namely I get the pages chopped up oddly.

I was wondering, are the profiles stored anywhere in editable form? I had a look but could not see them as I was hoping I could manually tweak the profile settings directly rather than via the gui...

cheers!
I saw that too! While you can change the source and re-compile the thing, it is easier to use the dos command or GUI to test your various sizes out.

BTW, in the source dir, in common.py, the 'mobi-prc' Profile is defined as:
Code:
  'prc-mobi'  : {'hres': 520, 'vres':640, 'mode': 'landscape', 'rotate':'right', 'colors': 4,   'colorspace': 'gray', 'format': 'prc' },
At the command prompt, if you type "pdfread --list-profiles", it produces this output (only mobi-prc specific parts shown):
Code:
[prc-mobi]
  rotate   = right
  hres     = 520
  format   = prc
  vres     = 640
  colorspace = gray
  colors   = 4
  mode     = landscape
 
[prc-mobi-p]
  rotate   = none
  hres     = 520
  format   = prc
  vres     = 640
  colorspace = gray
  colors   = 4
  mode     = portrait
Typing this code below, at the command-prompt, will print the fourth (4th) page of the comic book Piper.cbz using the default 'mobi-prc' profile:
Code:
"C:\Program Files\PDFRead\bin\pdfread" -p prc-mobi -i cbz --first-page 4 --last-page 4 -t "#504 Pied Piper" -a "Classics Illustrated Junior" -f prc -m landscape-half -r right --colorspace gray --colors 4 --hres 520 --vres 640 "C:\Program Files\PDFRead\bin\Piper.cbz"
Changing the hres and vres values to match your device's aspect ratio will maximize the image size and minimize that white space around. While I couldn't get tompe's 'opf2html' to produce larger images than 480x640 (some internal maximum for the Gen3), I produced 600x800 images using PDRFread and Mobipocket Creator. You can use the PDFRead GUI and input into 'Size H:' and 'V:' the 600 and 800 respectively!

To this test larger size, I used Mobipocket Creator on the resulting .opf left behind, by placing an empty file called 'debug' (created with any text editor) in the 'PDFRead/bin' directory. See attached 600x800 sample which may not display properly on the Cybook Gen 3.

Does this help?

p.s. to avoid small bits of a page from being produced, select the 'landscape-half' mode instead of the 'landscape' mode. The difference is that the former will produce just two page flips for each page whereas that latter will produce as many page flips as necessary to get the full width displayed sideways. (enough with math theory!)


EDIT: Added source file of 600x800 .prc in .zip format.
Attached Thumbnails
Click image for larger version

Name:	CBZ_mobi-prc-L1.jpg
Views:	374
Size:	265.4 KB
ID:	11966   Click image for larger version

Name:	CBZ_mobi-prc-L2.jpg
Views:	386
Size:	234.3 KB
ID:	11967  
Attached Files
File Type: prc Piper_600x800.prc (110.2 KB, 325 views)
File Type: zip Piper-sample_600x800.zip (145.4 KB, 314 views)

Last edited by nrapallo; 04-03-2008 at 12:00 PM. Reason: added test source
nrapallo is offline   Reply With Quote