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

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

Notices

Reply
 
Thread Tools Search this Thread
Old 03-18-2008, 05:32 PM   #106
FangornUK
Addict
FangornUK has a complete set of Star Wars action figures.FangornUK has a complete set of Star Wars action figures.FangornUK has a complete set of Star Wars action figures.FangornUK has a complete set of Star Wars action figures.
 
FangornUK's Avatar
 
Posts: 205
Karma: 317
Join Date: Oct 2006
Location: England
Device: Sony PRS-505, iPad, Kindle 3
what about:
comiclrf.pl c:\"test.cbr"
FangornUK is offline   Reply With Quote
Old 03-18-2008, 05:48 PM   #107
phurren
Junior Member
phurren began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Mar 2008
Device: Sony Reader 505
Thanks, just tried it, but came up with the same error.
phurren is offline   Reply With Quote
Old 03-19-2008, 10:38 AM   #108
Ryan2065
Junior Member
Ryan2065 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Feb 2008
Device: Sony 505
I am getting the same error as phurren. I downloaded a pack and the first 3 .cbr files went through comiclrf just fine but now it doesn't seem to work on any of the other .cbr files in the pack. I've used it to convert other comics with no problems and it is currently converting some other .cbr files I have... I'm not really sure what is going on with it. I've changed the file name of the cbr file to take out the spaces, deleted the comiclrf files and re-copied them, moved the cbr file from the d drive to c and even to the directory in c that holds comiclrf but nothing seems to work with this file. I've also tried using the *.cbr command and test.cbr but both still give me the error.

I don't have a cbr viewer but 7zip has no problems opening it and all the pictures display fine when it is unzipped.

You have made a great program though! Great job on it.


C:\utils>comiclrf.pl "c:\test.cbr"
Converting Comic "test"...
Extracting...
RAR failed! at C:\utils\comiclrf.pl line 138.
Ryan2065 is offline   Reply With Quote
Old 03-24-2008, 12:11 PM   #109
Ryan2065
Junior Member
Ryan2065 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Feb 2008
Device: Sony 505
After finding a few more comics with this same error I'm starting to think the problem is with the comic file and not the program. I'm seeing this error alot with comics that won't open in a comic viewer or comics that won't load one or two pages in the comic viewer. There still are one or two comics that open without error in the comic viewer program but get this error but I'd still say they are the files fault and not the program. I just extract the image files and re-make the comic and then all is good.
Ryan2065 is offline   Reply With Quote
Old 03-24-2008, 12:20 PM   #110
FangornUK
Addict
FangornUK has a complete set of Star Wars action figures.FangornUK has a complete set of Star Wars action figures.FangornUK has a complete set of Star Wars action figures.FangornUK has a complete set of Star Wars action figures.
 
FangornUK's Avatar
 
Posts: 205
Karma: 317
Join Date: Oct 2006
Location: England
Device: Sony PRS-505, iPad, Kindle 3
Perhaps the comic files have subdirectories?
FangornUK is offline   Reply With Quote
Old 03-24-2008, 03:12 PM   #111
mimoviz
Enthusiast
mimoviz began at the beginning.
 
mimoviz's Avatar
 
Posts: 28
Karma: 10
Join Date: Dec 2007
Location: Barquisimeto, VENEZUELA.
Device: Sony Reader PRS-505
Smile Help Help Help

Dear Farngorn: I seem unable to make your wonderful script to work. This is the output and it always happens whenever it reaches the fourth file of any cbr.
Output:
dbe495437:~ mimoviz$ perl comiclrf.pl Akira01.cbr tes.lrf
Converting Comic "Akira01"...
Extracting...
Processing 1 of 182 "Akira - I - 001.jpg"
Processing 2 of 182 "Akira - I - 002.jpg"
Processing 3 of 182 "Akira - I - 003.jpg"
Processing 4 of 182 "Akira - I - 004.jpg"
convert: geometry does not contain image `/tmp/comiclrf/Akira - I - 004.jpg'.
ImageMagick failed, path set wrong? at comiclrf.pl line 218.

The path is Ok. In fact I have tried the convert command by hand using the same options as per comiclrf in line 218 and it works flawlessly. So am still confused.
Could you help me?

Thanks

BTW: I run an OSX Tiger machine. I downloaded and installed imagemagick myself in /usr/local/bin and it is accesible from any terminal.

Last edited by mimoviz; 03-24-2008 at 03:14 PM. Reason: Add some data about OS
mimoviz is offline   Reply With Quote
Old 03-24-2008, 06:31 PM   #112
FangornUK
Addict
FangornUK has a complete set of Star Wars action figures.FangornUK has a complete set of Star Wars action figures.FangornUK has a complete set of Star Wars action figures.FangornUK has a complete set of Star Wars action figures.
 
FangornUK's Avatar
 
Posts: 205
Karma: 317
Join Date: Oct 2006
Location: England
Device: Sony PRS-505, iPad, Kindle 3
Not sure what's wrong. You're calling comiclrf.pl incorrectly but I don't see how that would cause it to fail. Use: 'perl comiclrf.pl Akira01.cbr'
FangornUK is offline   Reply With Quote
Old 03-25-2008, 12:42 PM   #113
mimoviz
Enthusiast
mimoviz began at the beginning.
 
mimoviz's Avatar
 
Posts: 28
Karma: 10
Join Date: Dec 2007
Location: Barquisimeto, VENEZUELA.
Device: Sony Reader PRS-505
Question

Quote:
Originally Posted by FangornUK View Post
Not sure what's wrong. You're calling comiclrf.pl incorrectly but I don't see how that would cause it to fail. Use: 'perl comiclrf.pl Akira01.cbr'
Same thing happens.... I dont know why. If there was something wrong in the path then the individual commands wouldn't work right?
See... this is what happens:
Code:
dbe495437:~ mimoviz$ perl comiclrf.pl Akira01.cbr
Converting Comic "Akira01"...
Extracting...
Processing 1 of 182 "Akira - I - 001.jpg"
Processing 2 of 182 "Akira - I - 002.jpg"
Processing 3 of 182 "Akira - I - 003.jpg"
Processing 4 of 182 "Akira - I - 004.jpg"
convert: geometry does not contain image `/tmp/comiclrf/Akira - I - 004.jpg'.
ImageMagick failed, path set wrong? at comiclrf.pl line 218.
I have checked both convert and identify binaries...they work well... perhaps there are some library dependencies that are not working? I wonder how can I tell?
Do you happen to know how to uninstall perl completely from terminal in a mac? It is not the Activestate version, just a plain simple port for darwin.


Thanks
mimoviz is offline   Reply With Quote
Old 03-25-2008, 02:20 PM   #114
mimoviz
Enthusiast
mimoviz began at the beginning.
 
mimoviz's Avatar
 
Posts: 28
Karma: 10
Join Date: Dec 2007
Location: Barquisimeto, VENEZUELA.
Device: Sony Reader PRS-505
Already done

Ok. I installed ActivePerl and its fully functional. But the problem remains... My current guess it must have something to do with imagemagick, but I am still at loss.
perhaps the name of the files with spaces between the numbers?
perhaps something else?
mimoviz is offline   Reply With Quote
Old 03-25-2008, 03:31 PM   #115
mimoviz
Enthusiast
mimoviz began at the beginning.
 
mimoviz's Avatar
 
Posts: 28
Karma: 10
Join Date: Dec 2007
Location: Barquisimeto, VENEZUELA.
Device: Sony Reader PRS-505
Thumbs up Solved

I did it! I just had to update a library within /sw/lib and everything was smooth. Thanks... The problem was in Imagemagick after all...
Thanks man
ç
mimoviz is offline   Reply With Quote
Old 03-25-2008, 03:44 PM   #116
mimoviz
Enthusiast
mimoviz began at the beginning.
 
mimoviz's Avatar
 
Posts: 28
Karma: 10
Join Date: Dec 2007
Location: Barquisimeto, VENEZUELA.
Device: Sony Reader PRS-505
Thumbs down Too soon I declared Victory... :-(

Ahh... come on... this is just awful. when I thought everything was OK I have a new issue here: could you look at the code and surmise what is happening?

Code:
Processing 182 of 182 "Akira - I - 182.jpg"
Converting LRS to LRF...
Traceback (most recent call last):
  File "/Applications/libprs500.app/Contents/Resources/lrs2lrf.py", line 8, in <module>
    from libprs500.ebooks.lrf.lrs.convert_from import main
  File "libprs500/__init__.pyo", line 30, in <module>
  File "PyQt4/QtCore.pyo", line 18, in <module>
  File "PyQt4/QtCore.pyo", line 11, in __load
ImportError: dlopen(/Applications/libprs500.app/Contents/Resources/lib/python2.5/lib-dynload/PyQt4/QtCore.so, 2): Symbol not found: __cg_TIFFSetErrorHandler
  Referenced from: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO
  Expected in: /opt/local/lib/libTIFF.dylib

LRS2LRF failed! at comiclrf.pl line 247.
mimoviz is offline   Reply With Quote
Old 03-26-2008, 10:52 AM   #117
x5nder
Junior Member
x5nder began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Mar 2008
Device: Sony PRS-505
I have a feature request. Looking in your README.TXT I see the following 'feature':

Added auto image rotation for landscape images.

What I would really like, as these rotated images usually turn out too small to read, would be for your program to automatically split landscape images in half and encode them as two seperate pages. Would that make sense? I, for one, would love it!
x5nder is offline   Reply With Quote
Old 03-30-2008, 03:00 AM   #118
Xombie
Junior Member
Xombie began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Mar 2008
Device: Sony PRS-505
Quote:
Originally Posted by mimoviz View Post
Ahh... come on... this is just awful. when I thought everything was OK I have a new issue here: could you look at the code and surmise what is happening?

Code:
Processing 182 of 182 "Akira - I - 182.jpg"
Converting LRS to LRF...
Traceback (most recent call last):
  File "/Applications/libprs500.app/Contents/Resources/lrs2lrf.py", line 8, in <module>
    from libprs500.ebooks.lrf.lrs.convert_from import main
  File "libprs500/__init__.pyo", line 30, in <module>
  File "PyQt4/QtCore.pyo", line 18, in <module>
  File "PyQt4/QtCore.pyo", line 11, in __load
ImportError: dlopen(/Applications/libprs500.app/Contents/Resources/lib/python2.5/lib-dynload/PyQt4/QtCore.so, 2): Symbol not found: __cg_TIFFSetErrorHandler
  Referenced from: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO
  Expected in: /opt/local/lib/libTIFF.dylib

LRS2LRF failed! at comiclrf.pl line 247.
Hi. Try this. Open up the comiclrf.pl file and go to line 218. Change...

system("\"$imagemagick\" -size ".$scrwidth."x".$scrheight." \"$fromfile\" $rotate -fuzz 40% -trim +repage $im_param -type grayscale -colors $colours \"$tofile\"") == 0 || die "ImageMagick failed, path set wrong?";

...to...

system("\"$imagemagick\" -size ".$scrwidth."x".$scrheight." \"$fromfile\" $rotate -fuzz 40% $im_param -type grayscale -colors $colours \"$tofile\"") == 0 || die "ImageMagick failed, path set wrong?";

That gets rid of the -trim function so it's not a permanent fix. However, most of the people that put out manga already trim their pages. Well, the decent/good groups, I suppose.

I had the same initial problem as you (geometry does not contain image) and removing trim fixed it without the need for installing any other software like ActivePerl, etc... I'm on Ubuntu 7.10 if it helps.

I may spend more time investigating if nobody else figures it out in the meantime.

Good luck!
Xombie is offline   Reply With Quote
Old 03-30-2008, 11:17 PM   #119
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: 2530531
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN

Sorry for butting in here, but those who want to try a new Comic (CBZ/CBR) to lrf converter may want to try PDFRead 1.8.1 which was just released in the Content forum. Input support for .CBZ/.CBR was recently added in addition to pdf/djvu/tiff/imglist. Output Profiles have been provided for the Sony PRS-500 and PRS-505 based on past discussions here and elsewhere.

PDFRead 1.8.1 can be found here.

While it may require the (free) eBook Publisher software installed, it allows for Cropping, rotating, dilating (thickening the text) and edge enhancing with colors/grayscale from 2 to 256! It also outputs in various landscape and portrait modes to suit your needs.

I'd be interested in some feedback if the default settings are to your liking. Please respond in the PDFRead 1.8.1 thread so as to lessen the impact here.

Thanks in advance!
nrapallo is offline   Reply With Quote
Old 03-31-2008, 12:08 AM   #120
mimoviz
Enthusiast
mimoviz began at the beginning.
 
mimoviz's Avatar
 
Posts: 28
Karma: 10
Join Date: Dec 2007
Location: Barquisimeto, VENEZUELA.
Device: Sony Reader PRS-505
Talking Solved finally!

Xombie: Thanks for your input. I finally solved the problem. It was not on the code or the software. In fact, the issue has to do with some idiosyncrasies of OSX... whenever it finds more than 1 library, even they are the same version, the execution stops.
I had to read a LOT to get here, and it was so simple after all...

Thanks to all of you guys for your support.
mimoviz is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Conversion of comics (CBR/CBZ) FangornUK Conversion 269 09-06-2012 12:43 AM
PDF -> JPG -> CBZ -> LRF leveck Workshop 13 06-16-2011 12:21 PM
Best (approximately 7 inch) sub-250$ reader for color comics (unzipped CBR/CBZ)? Neole Alternative Devices 15 05-15-2011 06:02 PM
how to read / convert comics (.cbz) cybmole Calibre 8 10-04-2010 04:16 AM
CBZ > LRF (LRF>HTML/MOBI????) sideburnt Calibre 4 09-15-2009 07:44 AM


All times are GMT -4. The time now is 01:41 AM.


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