09-05-2011, 04:25 AM | #1 |
Junior Member
Posts: 2
Karma: 10
Join Date: Sep 2011
Device: iPad
|
Ebook conversion (EPUB to MOBI) via command line
Hello everybody.
I’m new to this forum. I’m converting some ebooks from EPUB to MOBI format via command line. I'd like to use Calibre via command line, but there is a problem about the cover. In the EPUB, in the content.opf file, in the <spine>, the cover page has the attribute linear set to "no" (<itemref idref="cover" linear="no" />). If I export the EPUB file directly with Calibre the thumbnail of the cover appear in Kindle application (see attachment). While if I export the EPUB file via command line, the thumbnail of the cover doesn't appear in Kindle application (see attachment). This is the code: ebook-convert 9788852013089.epub 9788852013089.mobi --input-profile=sony --output-profile=kindle What is wrong about my code? Thanks in advance. |
09-05-2011, 06:07 AM | #2 |
Wizard
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
|
You've only set a small handful of ebook-convert options. There are many options that can be set, including several around setting a cover. Try doing a conversion from the GUI and then go to the conversion log, which can be accessed by clicking on 'Jobs' in the the lower right of Calibre's main window. The top of the log will list out all the options that were enabled during the conversion - each option maps to an ebook-convert argument.
At a guess you're missing the --cover option and you're ePub doesn't include a cover. Read more here: http://manual.calibre-ebook.com/cli/ebook-convert.html |
Advert | |
|
09-05-2011, 06:23 AM | #3 | |
Junior Member
Posts: 2
Karma: 10
Join Date: Sep 2011
Device: iPad
|
Thanks.
I’ve noticed that the conversion works from the GUI. The problem occurs when I work through command-line (I want to serialize the process of conversion of hundreds of books!). The problem is identical to the one described in this thread "Cover lost when converting fb2 to mobi by command line " https://bugs.launchpad.net/calibre/+bug/829240 In that case Kovid answered (August 19th 2011): Quote:
|
|
09-05-2011, 02:02 PM | #4 |
Wizard
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
|
My point wasn't that you use the GUI in general, my point was that you use the GUI once to see all the ebook-convert arguments that get used from the GUI. If you set all the same cli arguments that are used in the GUI then you should get the same results as the GUI using ebook-convert. Once you've got the arguments right you can go to town with whatever scripts you want to use.
Note the GUI can also batch convert any number of books, FYI. If that bug-fix you mentioned was related to your problem then the latest version of Calibre on the download site would already have that fix. |
09-16-2011, 09:34 PM | #5 |
US Navy, Retired
Posts: 9,865
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
Absolutely. I'm the not most versed, but this sticky post (located at the top of the conversion sub-forum) give some detail on how to create TOC with calibre.
|
Advert | |
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Command line conversion of a URL to ePub | bmwr1200c | Recipes | 3 | 08-11-2011 02:42 PM |
Calibre Command Line Conversion | bmwr1200c | Calibre | 1 | 08-10-2011 07:04 PM |
command-line only e-book conversion | running | Conversion | 1 | 01-30-2011 08:09 AM |
Command line convert ePub->MOBI mangles cover | cscotts | Calibre | 7 | 12-14-2010 12:21 AM |
command-line conversion tools in 0.6.0? | WayneD | Calibre | 3 | 06-03-2009 01:30 PM |