09-30-2007, 12:14 PM | #211 |
Connoisseur
Posts: 77
Karma: 1393
Join Date: Aug 2007
Location: Santa Monica
Device: prs-500
|
Zip (or rar) up the png files.
Also I reuploaded new builds of dos and linux versions. Last edited by cacapee; 09-30-2007 at 12:54 PM. |
09-30-2007, 02:58 PM | #212 | |
Connoisseur
Posts: 80
Karma: 204
Join Date: Jun 2007
Device: Sony Librie, Irex DR1000S
|
Quote:
title: author: bookid: PDFLRF046fff061 publisher: description: date: 2007-09-30 error displaying meta information: unexpected end of file. Current depth is 3 Line 17, position 14. Note: Anyway, if I try your windows version then the output lrf file is neither working with Sony's Software for Librie ("Librie for Windows") |
|
Advert | |
|
09-30-2007, 03:05 PM | #213 |
creator of calibre
Posts: 44,336
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
cacapee there is a bug in creation of the metadata block by pdflrf. I had to work around it in the latest libprs500. Basically there's content after the closing </Info> tag, which probably indicates that the size of the emtadata block is not being correctly set in the output LRF file.
|
09-30-2007, 04:04 PM | #214 | |
Zealot
Posts: 118
Karma: 306
Join Date: Sep 2007
Device: Sony PRS-500 Archos 704 wifi
|
Works like charm
Quote:
djvu to lrf - 200 seconds png (converted from djvu to tiff by DjVuDecode and from tiff to png by Irfanview - size over 20 Mb each) - 375 seconds (output size about 50 Kb for each png) png (converted from djvu to tiff by DjVuDecode and from tiff to png by tiff2png - size less than 100 Kb each) - 340 seconds (output size as above) It looks like unzipping and zipping takes it toll. Zips created by an old pkzip version 5.1.2600 do not seem to work (I cancelled processing after more than 10 minutes). Zips created by Total Commander are ok. Pictures attached are from an old Polish heraldic book available in djvu format from an academic network of dLibra. |
|
09-30-2007, 05:17 PM | #215 |
Connoisseur
Posts: 77
Karma: 1393
Join Date: Aug 2007
Location: Santa Monica
Device: prs-500
|
I've uploaded a new build up that fixes a couple of metadata bugs.
|
Advert | |
|
09-30-2007, 05:34 PM | #216 |
Zealot
Posts: 118
Karma: 306
Join Date: Sep 2007
Device: Sony PRS-500 Archos 704 wifi
|
Works like a charm - medium and large view examples
The pdflrf processed png picture I attached to my previous post was taken from Sony's small view. It is in practice the only view available for pdfs or image based lrfs. But the pngs can be seen (and panned) in medium and large view as well.
What a pity that Sony does not allow collections/folders of pictures. Why their developers have crippled the Linux implementation so much is beyond any reasoning. The Archos allows folders, so each collection of png book pages can be placed in its own folder and read page after page. In Sony, it is just a long list of png pages from the pictures menu. Fortunately they can be viewed in sequence by using the page buttons. |
10-01-2007, 04:22 AM | #217 | |
Connoisseur
Posts: 80
Karma: 204
Join Date: Jun 2007
Device: Sony Librie, Irex DR1000S
|
Awesome. Librie Compatibility is back
Quote:
Thus, release 0.99 is the first one that have Librie compatibility and a Linux version. Thank you very much cacapee |
|
10-01-2007, 09:01 AM | #218 |
Zealot
Posts: 118
Karma: 306
Join Date: Sep 2007
Device: Sony PRS-500 Archos 704 wifi
|
Refinements to consider - paper book to image
Cacapee, below is a list of refinements for you to consider to make your program a comprehensive tool for "paper books to image" processing:
1. Deskew (based on lines rather than borders - like ClearImage) 2. Clean Black Borders before wiping out White Borders (again like ClearImage that removes the borders, and sets border area pixels to white). That option is reliable for B&W pictures only. 3. Straighten the curved text lines (the only program I know that does it properly is BookRestorer) 4. Remove the perspective/trapezoidal effect (as above) 5. Despeckle/ Remove noise 5. Remove black objects (lines and blobs) with a specified number and density of black pixels. No program that I know can do it properly.Some programs allow to remove the punch holes (ClearImage) and some allow to remove lines or blobs of certains dimensions (Scanfix) but every so often they remove parts of text as well. That is why I suggest to take into account the number of black pixels that are close together rather than vertical and horiontal dimensions of black objects. The line of text is a mix of black and white pixels, while a black blob will have much higher proportion of black to white. I do not expect you to do what professional/commercial teams of developers have not achieved yet, but it looks from what you have already done that you can improve on them. The cleaning of black borders would be the most welcome refinement for "picture perfect" photos of book pages (camera pictures are of different proportions than paper documents/books and that leaves the black bacground at the picture borders). The other refinements are for poorly taken photos/microfilms from digital libraties. Once again let me tell you how much I admire what you have done, and my suggestions are just a dream for the future. |
10-02-2007, 07:55 AM | #219 |
Junior Member
Posts: 2
Karma: 10
Join Date: Oct 2007
Device: not owning one yet
|
Hi all,
I've read through the whole discussion. Cacapee, you did a wonderful job! Just one question: How can one output the generated pages in an image format? I tried (using the command prompt): pdflrf.exe --outputimages -vrs -f1 -l3 -i xxx.pdf -o xxx.lrf The lrf file was generated without any error, however I could not find any generated images in the folder. What am I doing wrong? Thanks guys, Szabi |
10-02-2007, 08:45 AM | #220 |
Zealot
Posts: 118
Karma: 306
Join Date: Sep 2007
Device: Sony PRS-500 Archos 704 wifi
|
In Windows interface you just give your output file the zip extention (in the setting window). Same for images as the input.
|
10-02-2007, 08:51 AM | #221 | |
Connoisseur
Posts: 80
Karma: 204
Join Date: Jun 2007
Device: Sony Librie, Irex DR1000S
|
Quote:
pdflrf.exe -vrs -f1 -l3 -i xxx.pdf -o xxx.zip |
|
10-02-2007, 10:16 AM | #222 |
Member
Posts: 21
Karma: 81
Join Date: Jun 2007
Device: Sony Reader
|
Reaching the 1.00
I think that the PdfLrf is stable and mature enough to reach the 1.00 Version.
Many thanks to Cacapee ! |
10-02-2007, 02:54 PM | #223 |
Zealot
Posts: 118
Karma: 306
Join Date: Sep 2007
Device: Sony PRS-500 Archos 704 wifi
|
Black background and black lines at margins
The first picture shows from left to right:
original image, image after automatic black background removal with ClearImage demo, image after black background removal, processed with pdflrf (default portrait mode, thicken=3). The black line and the black spot at the left margin prevent pdflrf from automatic trimming that part as a white space. That line comes from taking the picture with the opposite panel of the v-cradle getting into the view. The second picture shows the same sequence but with the original image shot with greater care in order to avoid the view of the opposite panel of the v-cradle. The lighting for both original images was not perfect, as one can see well in the decorative frame part of the images. I can do better than that but not in provisional conditions when I am far away from home now. The pdflrf output of both images was set at the original input size rather than adjusted for Sony in order to better see the resulting details. For the same reason the pictures I attach are quite large (still less than 1 Mb each) although I saved them at 25% size of the originals at 50% compression. |
10-02-2007, 04:14 PM | #224 |
Junior Member
Posts: 2
Karma: 10
Join Date: Oct 2007
Device: not owning one yet
|
|
10-03-2007, 10:53 PM | #225 |
Junior Member
Posts: 3
Karma: 10
Join Date: Mar 2007
|
Thank you for wonderful program.
BUt I have a trouble in using your program. When I let ghostscript option on, I always got error message.(Windows XP, Ghostscript 8.54) Is there anyone who doesn't have the problem? Last edited by daiphile; 10-04-2007 at 12:02 AM. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
soPdf - Better than Yet another PDF to LRF converter | theguru | 197 | 11-20-2012 04:54 PM | |
comiclrf - Comics(CBZ) to LRF converter | FangornUK | LRF | 274 | 06-16-2010 02:24 PM |
Book Processor - Anything to LRF and HTML converter | LittleDragon | Sony Reader | 11 | 05-13-2008 04:31 PM |
Quick/easy LIT to LRF converter? | OUTATIME | Sony Reader Dev Corner | 10 | 02-29-2008 09:44 AM |
Anyone else want chm to lrf converter? | buster | Sony Reader | 10 | 02-09-2008 05:07 PM |