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, 01: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, 02: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: 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)
kovidgoyal is offline   Reply With Quote
Advert
Old 03-11-2010, 10: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, 08: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 08:28 AM.
Matsendrasana is offline   Reply With Quote
Old 02-21-2013, 08: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: 44,413
Karma: 23977332
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
preserve cover aspect ratio works perfectly for epub.
kovidgoyal is offline   Reply With Quote
Advert
Old 02-21-2013, 08: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, 09: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: 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.
kovidgoyal is offline   Reply With Quote
Old 02-21-2013, 10: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, 11:00 AM   #9
PeterT
Grand Sorcerer
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: 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.
PeterT is offline   Reply With Quote
Old 02-21-2013, 11:02 AM   #10
theducks
Well trained by Cats
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: 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:
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 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


All times are GMT -4. The time now is 05:02 AM.


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