Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > Other formats > LRF

Notices

Closed Thread
 
Thread Tools Search this Thread
Old 09-30-2007, 01:14 PM   #211
cacapee
Connoisseur
cacapee is no ebook tyro.cacapee is no ebook tyro.cacapee is no ebook tyro.cacapee is no ebook tyro.cacapee is no ebook tyro.cacapee is no ebook tyro.cacapee is no ebook tyro.cacapee is no ebook tyro.cacapee is no ebook tyro.cacapee is no ebook tyro.
 
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 01:54 PM.
cacapee is offline  
Old 09-30-2007, 03:58 PM   #212
godel10
Connoisseur
godel10 doesn't littergodel10 doesn't littergodel10 doesn't litter
 
Posts: 80
Karma: 204
Join Date: Jun 2007
Device: Sony Librie, Irex DR1000S
Quote:
Originally Posted by cacapee View Post
godel10 - editlrfmetadata works for me in both .9 and .99 Can you pm me a pdf file which has that problem.
For instance you can use a pdf file I created myself. When I use your linux .99 version my output is this, and the output of editlrfmeta with this file is

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")
godel10 is offline  
Old 09-30-2007, 04:05 PM   #213
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 26,314
Karma: 5382313
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.
kovidgoyal is offline  
Old 09-30-2007, 05:04 PM   #214
ereszet
Zealot
ereszet has a complete set of Star Wars action figures.ereszet has a complete set of Star Wars action figures.ereszet has a complete set of Star Wars action figures.ereszet has a complete set of Star Wars action figures.
 
ereszet's Avatar
 
Posts: 118
Karma: 306
Join Date: Sep 2007
Device: Sony PRS-500 Archos 704 wifi
Works like charm

Quote:
Originally Posted by cacapee View Post
Zip (or rar) up the png files.

Also I reuploaded new builds of dos and linux versions.
Some tests:

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.
Attached Thumbnails
Click image for larger version

Name:	png from djvu.jpg
Views:	354
Size:	211.9 KB
ID:	5972   Click image for larger version

Name:	png by pdflrf.jpg
Views:	351
Size:	239.0 KB
ID:	5973   Click image for larger version

Name:	lrf by pdflrf.jpg
Views:	339
Size:	233.9 KB
ID:	5974  
ereszet is offline  
Old 09-30-2007, 06:17 PM   #215
cacapee
Connoisseur
cacapee is no ebook tyro.cacapee is no ebook tyro.cacapee is no ebook tyro.cacapee is no ebook tyro.cacapee is no ebook tyro.cacapee is no ebook tyro.cacapee is no ebook tyro.cacapee is no ebook tyro.cacapee is no ebook tyro.cacapee is no ebook tyro.
 
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.
cacapee is offline  
Old 09-30-2007, 06:34 PM   #216
ereszet
Zealot
ereszet has a complete set of Star Wars action figures.ereszet has a complete set of Star Wars action figures.ereszet has a complete set of Star Wars action figures.ereszet has a complete set of Star Wars action figures.
 
ereszet's Avatar
 
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.
Attached Thumbnails
Click image for larger version

Name:	medium size view.jpg
Views:	281
Size:	218.7 KB
ID:	5978   Click image for larger version

Name:	large size view.jpg
Views:	302
Size:	203.8 KB
ID:	5979  
ereszet is offline  
Old 10-01-2007, 05:22 AM   #217
godel10
Connoisseur
godel10 doesn't littergodel10 doesn't littergodel10 doesn't litter
 
Posts: 80
Karma: 204
Join Date: Jun 2007
Device: Sony Librie, Irex DR1000S
Awesome. Librie Compatibility is back

Quote:
Originally Posted by cacapee View Post
I've uploaded a new build up that fixes a couple of metadata bugs.
It seems that the Librie compatibility issue in the previous release was in that small bug.

Thus, release 0.99 is the first one that have Librie compatibility and a Linux version. Thank you very much cacapee
godel10 is offline  
Old 10-01-2007, 10:01 AM   #218
ereszet
Zealot
ereszet has a complete set of Star Wars action figures.ereszet has a complete set of Star Wars action figures.ereszet has a complete set of Star Wars action figures.ereszet has a complete set of Star Wars action figures.
 
ereszet's Avatar
 
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.
ereszet is offline  
Old 10-02-2007, 08:55 AM   #219
sszekacs
Junior Member
sszekacs began at the beginning.
 
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
sszekacs is offline  
Old 10-02-2007, 09:45 AM   #220
ereszet
Zealot
ereszet has a complete set of Star Wars action figures.ereszet has a complete set of Star Wars action figures.ereszet has a complete set of Star Wars action figures.ereszet has a complete set of Star Wars action figures.
 
ereszet's Avatar
 
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.
ereszet is offline  
Old 10-02-2007, 09:51 AM   #221
godel10
Connoisseur
godel10 doesn't littergodel10 doesn't littergodel10 doesn't litter
 
Posts: 80
Karma: 204
Join Date: Jun 2007
Device: Sony Librie, Irex DR1000S
Quote:
Originally Posted by sszekacs View Post
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
Try
pdflrf.exe -vrs -f1 -l3 -i xxx.pdf -o xxx.zip
godel10 is offline  
Old 10-02-2007, 11:16 AM   #222
MosFet
Member
MosFet has learned how to buy an e-book online
 
MosFet's Avatar
 
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 !

MosFet is offline  
Old 10-02-2007, 03:54 PM   #223
ereszet
Zealot
ereszet has a complete set of Star Wars action figures.ereszet has a complete set of Star Wars action figures.ereszet has a complete set of Star Wars action figures.ereszet has a complete set of Star Wars action figures.
 
ereszet's Avatar
 
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.
Attached Thumbnails
Click image for larger version

Name:	picture imperfect resized50zip.jpg
Views:	401
Size:	820.3 KB
ID:	6006   Click image for larger version

Name:	picture perfect resized50zip.jpg
Views:	340
Size:	764.1 KB
ID:	6007  
ereszet is offline  
Old 10-02-2007, 05:14 PM   #224
sszekacs
Junior Member
sszekacs began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Oct 2007
Device: not owning one yet
Quote:
Originally Posted by ereszet View Post
In Windows interface you just give your output file the zip extention (in the setting window). Same for images as the input.
thank you, ereszet and godel10
sszekacs is offline  
Old 10-03-2007, 11:53 PM   #225
daiphile
Junior Member
daiphile began at the beginning.
 
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 01:02 AM.
daiphile is offline  
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
soPdf - Better than Yet another PDF to LRF converter theguru PDF 197 11-20-2012 05:54 PM
comiclrf - Comics(CBZ) to LRF converter FangornUK LRF 274 06-16-2010 03:24 PM
Book Processor - Anything to LRF and HTML converter LittleDragon Sony Reader 11 05-13-2008 05:31 PM
Quick/easy LIT to LRF converter? OUTATIME Sony Reader Dev Corner 10 02-29-2008 10:44 AM
Anyone else want chm to lrf converter? buster Sony Reader 10 02-09-2008 06:07 PM


All times are GMT -4. The time now is 06:27 PM.


MobileRead.com is a privately owned, operated and funded community.