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 07-15-2010, 12:57 PM   #1
december
Enthusiast
december ought to be getting tired of karma fortunes by now.december ought to be getting tired of karma fortunes by now.december ought to be getting tired of karma fortunes by now.december ought to be getting tired of karma fortunes by now.december ought to be getting tired of karma fortunes by now.december ought to be getting tired of karma fortunes by now.december ought to be getting tired of karma fortunes by now.december ought to be getting tired of karma fortunes by now.december ought to be getting tired of karma fortunes by now.december ought to be getting tired of karma fortunes by now.december ought to be getting tired of karma fortunes by now.
 
Posts: 37
Karma: 529928
Join Date: Apr 2010
Device: Kindle 2
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.
december is offline   Reply With Quote
Old 07-16-2010, 03:09 AM   #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: 25,298
Karma: 4961457
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
depending on how the metadata in the epub is setup calibre will try to render the frist page of the epub as a cover when no cover is specified.
kovidgoyal is offline   Reply With Quote
Old 07-16-2010, 09:03 AM   #3
december
Enthusiast
december ought to be getting tired of karma fortunes by now.december ought to be getting tired of karma fortunes by now.december ought to be getting tired of karma fortunes by now.december ought to be getting tired of karma fortunes by now.december ought to be getting tired of karma fortunes by now.december ought to be getting tired of karma fortunes by now.december ought to be getting tired of karma fortunes by now.december ought to be getting tired of karma fortunes by now.december ought to be getting tired of karma fortunes by now.december ought to be getting tired of karma fortunes by now.december ought to be getting tired of karma fortunes by now.
 
Posts: 37
Karma: 529928
Join Date: Apr 2010
Device: Kindle 2
I see; thank you for the clarification. I'd more or less decided to stop fighting the flow and just start creating cover images rather than messing with headings-based covers, but this confirms it for me. Back to work, I guess!
december is offline   Reply With Quote
Old 10-28-2010, 07:36 AM   #4
softengdeb
Debasish
softengdeb began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Feb 2010
Location: India
Device: Sony Reder
I nedd some infomation

Quote:
Originally Posted by kovidgoyal View Post
depending on how the metadata in the epub is setup calibre will try to render the frist page of the epub as a cover when no cover is specified.
Hi,
This is Debasish from DCPL can you give me some Idea about the auto epub convertion? If I have a bulk pdf book in multilingual then I want to convert through any automated process PDF-ePUB. Please suggest me.
softengdeb is offline   Reply With Quote
Old 02-10-2012, 05:31 PM   #5
willthethrill521
M!77!@W
willthethrill521 began at the beginning.
 
willthethrill521's Avatar
 
Posts: 17
Karma: 10
Join Date: Nov 2011
Location: Milkyway Galaxy
Device: ipad, kindle fire
if your TitlePage.xhtml is not declared linear in the spine then the file will not display on your eReader.
In the OPF insert:
<itemref idref="" linear="yes" />
with the idref the same as id where you declared TitlePage.xhtml in the manifest.
willthethrill521 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Old Thread] epub -> mobi conversion; blank page after image joubert Calibre 10 03-07-2011 05:26 PM
Epub to Mobi Squashed Image... grizedale Calibre 9 11-08-2010 08:57 AM
Epub cover image issue vipinpa ePub 18 05-25-2010 12:28 AM
epub conversion - cover image Nate the great Calibre 15 09-14-2009 05:15 PM
ePub creation / conversion philippd ePub 8 06-04-2008 04:23 AM


All times are GMT -4. The time now is 10:20 AM.


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