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

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 03-09-2010, 02:32 PM   #1
bcolflesh
Junior Member
bcolflesh began at the beginning.
 
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?
bcolflesh is offline   Reply With Quote
Old 03-09-2010, 03:54 PM   #2
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,433
Karma: 5383257
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)
kovidgoyal is online now   Reply With Quote
Old 03-11-2010, 11:11 AM   #3
bcolflesh
Junior Member
bcolflesh began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Feb 2010
Device: none
Upgrading solved the issue - thank you very much!
bcolflesh is offline   Reply With Quote
Old 02-21-2013, 09:10 AM   #4
Matsendrasana
Member
Matsendrasana began at the beginning.
 
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 09:28 AM.
Matsendrasana is offline   Reply With Quote
Old 02-21-2013, 09:52 AM   #5
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,433
Karma: 5383257
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
preserve cover aspect ratio works perfectly for epub.
kovidgoyal is online now   Reply With Quote
Old 02-21-2013, 09:56 AM   #6
Matsendrasana
Member
Matsendrasana began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Nov 2012
Device: none
Quote:
Originally Posted by kovidgoyal View Post
preserve cover aspect ratio works perfectly for epub.
Yes, but not for MOBI:

Quote:
Originally Posted by Matsendrasana View Post
I am using calibre 0.9.6. The --no-default-epub-cover option seems to work only for EPUB-Output, but not for MOBI.
Matsendrasana is offline   Reply With Quote
Old 02-21-2013, 10:08 AM   #7
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,433
Karma: 5383257
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.
kovidgoyal is online now   Reply With Quote
Old 02-21-2013, 11:53 AM   #8
Matsendrasana
Member
Matsendrasana began at the beginning.
 
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.
Matsendrasana is offline   Reply With Quote
Old 02-21-2013, 12:00 PM   #9
PeterT
Taking a break; Fed up
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 7,355
Karma: 46281507
Join Date: Nov 2007
Location: Toronto
Device: Wife: Touch, Arc, Vox Me: Nexus 7, Glo
Remember that the calibre viewer does a simple conversion of non ePubs to ePub before displaying them.
PeterT is offline   Reply With Quote
Old 02-21-2013, 12:02 PM   #10
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 15,244
Karma: 6020307
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by Matsendrasana View Post
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.
Since you used Sigil:
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
theducks is offline   Reply With Quote
Reply

Tags
disable cover, mobi cover, no cover

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ABBYY Finereader - Possible to command line/auto convert? tessel Workshop 3 04-06-2011 12:08 PM
Where are the command line tools? PaulChernoch Calibre 17 10-23-2009 01:08 PM
ebook-convert not recognized as a command p3aul Calibre 11 10-11-2009 04:19 PM
Command Line Options for ebook-convert godel10 Calibre 14 08-08-2009 09:28 AM
Why use the command line? slantybard Calibre 6 07-22-2009 01:17 PM


All times are GMT -4. The time now is 04:50 AM.


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