View Single Post
Old 07-15-2010, 12:57 PM   #1
december
Nameless Being
 
Auto-creation of cover image on .epub to .mobi conversion

Apologies for creating a new thread so soon on the heels of my last one, but I've hit another strange snag in my .epub to .mobi conversion adventures. I'm sure I must be missing something simple, but I can't figure this one out!

All of my .epub files begin with a text-only cover page that has title, author, and series information. This code shows up just fine as an .epub in both Sigil and Calibre's own e-book viewer... but sometimes after conversion, the first page of the new .mobi file ends up with shrunken and distorted text instead, as if it's been specified as a cover image (despite having no cover selected in the Cover View on the main metadata page). Oddly, this seems to only be happening to about one out of every three of my converted books, so the problem must be something I've done wrong in the conversion settings, not the .epub file itself.

When I experimented and did specify a cover for the book, the old text-only cover page was pushed to the very back of the .mobi file, but the text headings did display correctly. When I took away the cover, restarted Calibre, and tried again with no cover specified, the same text-as-cover-image problem returned.

Here's the code from the most recent attempt; I think the line of interest is probably the "Spine-referenced file 'OEBPS/Text/TitlePage.xhtml' not in spine", but I don't know what that means.

Quote:
Convert book 1 of 1 (The Story of Peter Pan)
Resolved conversion options
calibre version: 0.7.1
{'asciiize': False,
'author_sort': None,
'authors': None,
'base_font_size': 0.0,
'book_producer': None,
'change_justification': u'original',
'chapter': u"//*[((name()='h1' or name()='h2') and re:test(., 'chapter|section|part\\s+', 'i')) or @class = 'chapter']",
'chapter_mark': u'pagebreak',
'comments': None,
'cover': None,
'debug_pipeline': None,
'disable_font_rescaling': False,
'dont_compress': False,
'extra_css': None,
'font_size_mapping': None,
'footer_regex': u'(?i)(?<=<hr>)((\\s*<a name=\\d+></a>((<img.+?>)*<br>\\s*)?\\d+<br>\\s*.*?\\s*)|(\\s* <a name=\\d+></a>((<img.+?>)*<br>\\s*)?.*?<br>\\s*\\d+))(?=<br>)' ,
'header_regex': u'(?i)(?<=<hr>)((\\s*<a name=\\d+></a>((<img.+?>)*<br>\\s*)?\\d+<br>\\s*.*?\\s*)|(\\s* <a name=\\d+></a>((<img.+?>)*<br>\\s*)?.*?<br>\\s*\\d+))(?=<br>)' ,
'input_encoding': None,
'input_profile': <calibre.customize.profiles.InputProfile object at 0x05117B10>,
'insert_blank_line': False,
'insert_metadata': False,
'isbn': None,
'keep_ligatures': False,
'language': None,
'level1_toc': None,
'level2_toc': None,
'level3_toc': None,
'line_height': 0.0,
'linearize_tables': False,
'margin_bottom': 5.0,
'margin_left': 5.0,
'margin_right': 5.0,
'margin_top': 5.0,
'max_toc_links': 50,
'no_chapters_in_toc': False,
'no_inline_navbars': True,
'no_inline_toc': True,
'output_profile': <calibre.customize.profiles.KindleOutput object at 0x05117DF0>,
'page_breaks_before': u'/',
'personal_doc': u'[PDOC]',
'prefer_author_sort': False,
'prefer_metadata_cover': False,
'preprocess_html': False,
'pretty_print': False,
'pubdate': None,
'publisher': None,
'rating': None,
'read_metadata_from_opf': 'c:\\users\\(username)\\appdata\\local\\temp\\cali bre_0.7.1_3uuo1z.opf',
'remove_first_image': False,
'remove_footer': False,
'remove_header': False,
'remove_paragraph_spacing': False,
'remove_paragraph_spacing_indent_size': 1.5,
'rescale_images': False,
'series': None,
'series_index': None,
'tags': None,
'timestamp': None,
'title': None,
'title_sort': None,
'toc_filter': None,
'toc_threshold': 6,
'toc_title': None,
'use_auto_toc': False,
'verbose': 2}
InputFormatPlugin: EPUB Input running
on C:\Users\(username)\Documents\E-Book Library\Calibre Archive\Barrie_JM\The Story of Peter Pan (72)\The Story of Peter Pan - Barrie_JM.epub
Found HTML cover OEBPS/Text/TitlePage.xhtml
Parsing all content...
Parsing OEBPS/Text/Chap08.xhtml ...
Parsing OEBPS/Text/Chap10.xhtml ...
Parsing OEBPS/Text/Chap12.xhtml ...
Parsing OEBPS/Text/Chap14.xhtml ...
Parsing OEBPS/Text/Chap16.xhtml ...
Parsing OEBPS/Text/Chap05.xhtml ...
Parsing OEBPS/Text/Inter01.xhtml ...
Parsing OEBPS/Text/Prologue.xhtml ...
Parsing OEBPS/Text/TOC.xhtml ...
Parsing OEBPS/Text/Chap09.xhtml ...
Parsing OEBPS/Text/Chap18.xhtml ...
Parsing OEBPS/Text/Chap06.xhtml ...
Parsing OEBPS/Text/AboutAuthor.xhtml ...
Parsing OEBPS/Text/Chap03.xhtml ...
Parsing OEBPS/Text/Chap04.xhtml ...
Parsing OEBPS/Text/Chap13.xhtml ...
Parsing OEBPS/Text/Chap15.xhtml ...
Parsing OEBPS/Text/Chap17.xhtml ...
Parsing OEBPS/Text/Chap07.xhtml ...
Parsing OEBPS/Text/Epilogue.xhtml ...
Parsing OEBPS/Text/Inter02.xhtml ...
Parsing OEBPS/Text/Summary.xhtml ...
Parsing OEBPS/Text/TitlePage.xhtml ...
Parsing OEBPS/Styles/StyleNovel.css ...
Parsing OEBPS/Text/Chap11.xhtml ...
Parsing OEBPS/Text/Chap01.xhtml ...
Parsing OEBPS/Text/Chap02.xhtml ...
Spine-referenced file 'OEBPS/Text/TitlePage.xhtml' not in spine
Reading TOC from NCX...
Merging user specified metadata...
Detecting structure...
Flattening CSS and remapping font sizes...
Source base font size is 12.00000pt
Cleaning up manifest...
Trimming unused files from manifest...
Parsing stylesheet.css ...
Creating MOBI Output...
Applying case-transforming CSS...
Parsing manglecase.css ...
Rasterizing SVG images...
Converting XHTML to Mobipocket markup...
Serializing markup content...
Compressing markup content...
Generating flat CTOC ...
CNCX utilization: 1 record, 0% full
Indexing navPoints ...
Generating INDX ...
Serializing images...
MOBI output written to c:\users\(username)\appdata\local\temp\calibre_0.7 .1_fk84du.mobi
Many thanks in advance, and sorry again for having to spam the forum like this.
  Reply With Quote