03-09-2010, 01:32 PM | #1 |
Junior Member
Posts: 5
Karma: 10
Join Date: Feb 2010
Device: none
|
Disable Cover for Command Line ebook-convert
I'm using 'ebook-convert' from the command line to create .epub files without covers, and the '--no-default-epub-cover' switch works fine for this.
Now I need to make .mobi and some other formats, but Calibre fails: Traceback (most recent call last): File "/tmp/init.py", line 48, in File "/home/kovid/build/calibre/src/calibre/ebooks/conversion/cli.py", line 250, in main File "/home/kovid/build/calibre/src/calibre/ebooks/conversion/plumber.py", line 852, in run File "/home/kovid/build/calibre/src/calibre/ebooks/mobi/output.py", line 163, in convert File "/home/kovid/build/calibre/src/calibre/ebooks/oeb/transforms/rasterize.py", line 34, in __init__ Exception: Not OK to use Qt This seems to be a known bug: http://bugs.calibre-ebook.com/ticket/1648 http://bugs.calibre-ebook.com/ticket/3932 With no fixes - which is fine for me, I don't need a cover - So how do you disable cover creation for the other formats? |
03-09-2010, 02:54 PM | #2 |
creator of calibre
Posts: 44,413
Karma: 23977332
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
you seem to be using a older version of calibre. upgrade to the latest and SVG rasterization (which is what it is complaining about will be optional)
|
Advert | |
|
03-11-2010, 10:11 AM | #3 |
Junior Member
Posts: 5
Karma: 10
Join Date: Feb 2010
Device: none
|
Upgrading solved the issue - thank you very much!
|
02-21-2013, 08:10 AM | #4 |
Member
Posts: 12
Karma: 10
Join Date: Nov 2012
Device: none
|
I am using calibre 0.9.6. The --no-default-epub-cover option seems to work only for EPUB-Output, but not for MOBI.
This wouldn't be a big problem, but the viewer stretches the image, destroying its aspect ratio. Another strange thing is that it selects a tiny .png-file, which comes after a .jpg-file in the document. The .png-file is actually the last image in the document. There is no option to prevent this (--preserve-cover-aspect-ratio works only for PDF). There's also no option to disable the automatic cover image at all, when converting EPUB to MOBI. How can the stretching of the cover image be prevented? All other images are not stretched. I tried a white pixel (1x1.gif) as first image... but ebook-convert still picks the .png-file at the end of the document. Last edited by Matsendrasana; 02-21-2013 at 08:28 AM. |
02-21-2013, 08:52 AM | #5 |
creator of calibre
Posts: 44,413
Karma: 23977332
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
preserve cover aspect ratio works perfectly for epub.
|
Advert | |
|
02-21-2013, 08:56 AM | #6 |
Member
Posts: 12
Karma: 10
Join Date: Nov 2012
Device: none
|
|
02-21-2013, 09:08 AM | #7 |
creator of calibre
Posts: 44,413
Karma: 23977332
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
MOBI has no facility for specifying that cover aspect ratios should be preserved, something that should be fairly obvious from the fact that there is no option for it.
|
02-21-2013, 10:53 AM | #8 |
Member
Posts: 12
Karma: 10
Join Date: Nov 2012
Device: none
|
Sorry, maybe this is the wrong place to ask this question. I just tried to convert an EPUB, edited with Sigil, to MOBI. Of course I read the manuals first.
However, epub-viewer seems to pick an arbitary cover file and even stretches it. There are two images, a Jpeg and a PNG. The Jpeg comes first, but it always picks the PNG. |
02-21-2013, 11:00 AM | #9 |
Grand Sorcerer
Posts: 12,652
Karma: 74500000
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
Remember that the calibre viewer does a simple conversion of non ePubs to ePub before displaying them.
|
02-21-2013, 11:02 AM | #10 | |
Well trained by Cats
Posts: 30,410
Karma: 58055234
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Did you use 'Add Semantic" and declare 'Cover' in 2 places? Once on the image file name, and again on the HTML file that call that image. If there is no Guide definition (what the Add Semantic creates), Calibre guess alphabetically |
|
Tags |
disable cover, mobi cover, no cover |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ABBYY Finereader - Possible to command line/auto convert? | tessel | Workshop | 3 | 04-06-2011 11:08 AM |
Where are the command line tools? | PaulChernoch | Calibre | 17 | 10-23-2009 12:08 PM |
ebook-convert not recognized as a command | p3aul | Calibre | 11 | 10-11-2009 03:19 PM |
Command Line Options for ebook-convert | godel10 | Calibre | 14 | 08-08-2009 08:28 AM |
Why use the command line? | slantybard | Calibre | 6 | 07-22-2009 12:17 PM |