Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 09-18-2022, 08:35 AM   #1
heinzeb
Junior Member
heinzeb began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Sep 2022
Device: kindle
Automatic cover of the first image in odt file

Hello,

as I convert a .odt file with images to .azw3 to caliber, caliber takes the first image as the cover.
If I change the cover to another cover, the first image in the e-book is also converted to the cover image.
How can you turn this off so that caliber doesn't take the first image as a cover?
heinzeb is offline   Reply With Quote
Old 09-18-2022, 09:47 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: 45,363
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Insert a dummy image at the start of the document or save it as docx and in the calibre conversion dialog under docx you will find an option to not treat the first image as the cover.
kovidgoyal is offline   Reply With Quote
Old 09-18-2022, 12:34 PM   #3
heinzeb
Junior Member
heinzeb began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Sep 2022
Device: kindle
Thank you for the quick reply.

There is no write as docx in OpenOffice.
Anyway, I use a lot of styles in the document and there are problems when saving in other formats.
And wouldn't it be possible to add such an option to disable the option of the first image as cover also for odt files?
heinzeb is offline   Reply With Quote
Old 09-18-2022, 02:44 PM   #4
Martinoptic
Bibliophist
Martinoptic ought to be getting tired of karma fortunes by now.Martinoptic ought to be getting tired of karma fortunes by now.Martinoptic ought to be getting tired of karma fortunes by now.Martinoptic ought to be getting tired of karma fortunes by now.Martinoptic ought to be getting tired of karma fortunes by now.Martinoptic ought to be getting tired of karma fortunes by now.Martinoptic ought to be getting tired of karma fortunes by now.Martinoptic ought to be getting tired of karma fortunes by now.Martinoptic ought to be getting tired of karma fortunes by now.Martinoptic ought to be getting tired of karma fortunes by now.Martinoptic ought to be getting tired of karma fortunes by now.
 
Martinoptic's Avatar
 
Posts: 7,037
Karma: 7173892
Join Date: Dec 2021
Location: England
Device: none
OpenOffice can’t save as .docx but LibreOffice apparently can. Maybe worth a try?
Martinoptic is offline   Reply With Quote
Old 09-19-2022, 05:48 AM   #5
heinzeb
Junior Member
heinzeb began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Sep 2022
Device: kindle
However, I would prefer to stick to the odt files.

It would be better to add to caliber an option to disable automatic addition of first image covers for odt files.
heinzeb is offline   Reply With Quote
Old 09-23-2022, 07:49 PM   #6
Bookstooge
Member Retired
Bookstooge ought to be getting tired of karma fortunes by now.Bookstooge ought to be getting tired of karma fortunes by now.Bookstooge ought to be getting tired of karma fortunes by now.Bookstooge ought to be getting tired of karma fortunes by now.Bookstooge ought to be getting tired of karma fortunes by now.Bookstooge ought to be getting tired of karma fortunes by now.Bookstooge ought to be getting tired of karma fortunes by now.Bookstooge ought to be getting tired of karma fortunes by now.Bookstooge ought to be getting tired of karma fortunes by now.Bookstooge ought to be getting tired of karma fortunes by now.Bookstooge ought to be getting tired of karma fortunes by now.
 
Posts: 805
Karma: 2091358
Join Date: May 2019
Device: Kindle Oasis 1st Gen, PB Era
Quote:
Originally Posted by heinzeb View Post
However, I would prefer to stick to the odt files.

It would be better to add to caliber an option to disable automatic addition of first image covers for odt files.
You are more than welcome to work on calibre to create this option. Go for it!
Bookstooge is offline   Reply With Quote
Old 09-24-2022, 10:23 AM   #7
Quoth
Still reading
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 14,057
Karma: 105092227
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
Open Office is essentially dead. Use LibreOffice Writer and edit in odt but an extra Save As in docx. Calibre converts docx better than odt anyway.
But while I've imported docx about 800 times or more into Calibre I have detect cover disabled and separately browse for a cover.
No-one professionally publishing or editing or reviewing docx or pdf or epub wants the cover in the document. Either they want a higher resolution image of just the front than would be in a epub or azw3 or want a full wrap image at 300 dpi minimum for front, spine and back if it's a PDF for POD.
Quoth is offline   Reply With Quote
Old 09-24-2022, 10:26 AM   #8
Quoth
Still reading
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 14,057
Karma: 105092227
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
Quote:
Originally Posted by Bookstooge View Post
You are more than welcome to work on calibre to create this option. Go for it!
Except Kovid writes that odt isn't going to be upgraded to work as well as docx. Doing extra Save As in docx (don't open it in LO ever) from LO Writer and convert docx to epub maps all the paragraph styles etc to CSS etc perfectly. The odt doesn't.
Then any other format is converted from epub.
Quoth is offline   Reply With Quote
Old 09-28-2022, 03:55 AM   #9
heinzeb
Junior Member
heinzeb began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Sep 2022
Device: kindle
I tested the docx write option.
Unfortunately, after writing to the docx in LibreOffice and converting the book to caliber, the structure of the headings is destroyed.
I guess LibreOffice doesn't write docx correctly.
Therefore, however, I will stick to odt.

However, this option to disable the first image as cover for odt files would be nice.
heinzeb is offline   Reply With Quote
Old 09-28-2022, 06:59 AM   #10
Quoth
Still reading
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 14,057
Karma: 105092227
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
No, the headings are perfect if done correctly. I've been doing this for years. The docx Save As and Calibre import has TOC and Headings Ok. But you must not open and save the docx in LO Writer ever, only edit odt, as LO converts docx on import and save.
I've a copy of Word 2007 I occasionally use to check what LO Writer is doing with a docx, but I've not needed to for over a year.
Literally hundreds of docx to Calibre import/conversions. The odt import simply is poor on styles to CSS conversion and other aspects (I forget). Kovid recommended I use docx and since then the issues I had with odt are gone.

LO Writer does Save As of docx fine if it's an odt with correct styling. But if you open the docx and save it in LO Writer, even without changes, it messes up the Word headings, links and styles. Especially page styles. Only ever do an EXTRA Save As in docx after Save of the odt and then without edit revert to the odt version!
Quoth is offline   Reply With Quote
Old 09-28-2022, 07:22 AM   #11
heinzeb
Junior Member
heinzeb began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Sep 2022
Device: kindle
That's what I did, opened an odt in LibreOffice and saved it as docx.
After converting to caliber, the title headers broke.
Maybe because the document was edited in OpenOffice and only saved in LibreOffice as docx.
So far I am fully satisfied with OpenOffice and odt.
The only problem is the covers from the first image after the caliber conversion.
heinzeb is offline   Reply With Quote
Old 09-28-2022, 10:44 AM   #12
retiredbiker
Evangelist
retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.
 
retiredbiker's Avatar
 
Posts: 450
Karma: 3886916
Join Date: May 2013
Location: Ontario, Canada
Device: Kindle KB, Oasis, Pop_Os!, Kobo Forma
Quote:
Originally Posted by heinzeb View Post
That's what I did, opened an odt in LibreOffice and saved it as docx.
After converting to caliber, the title headers broke.
Maybe because the document was edited in OpenOffice and only saved in LibreOffice as docx.
So far I am fully satisfied with OpenOffice and odt.
The only problem is the covers from the first image after the caliber conversion.
After I add an odt book to Calibre, I edit the metadata so that on conversion, it has the cover I want. I can add a dummy 1st image, and use the "remove first image" option, or just open the resulting epub in the editor and delete the extra cover.

But if I try and do the save to docx thing, LO insists on making my Heading 1 (etc.) chapter titles into numbered lists, which totally messes up the epub titles. I've spent hours trying to fix this, but without luck. LO turns the Heading 1 style into something with outline levels as far as I can tell.
retiredbiker is offline   Reply With Quote
Old 09-30-2022, 08:13 AM   #13
Quoth
Still reading
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 14,057
Karma: 105092227
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
Open Office is long dead. Forked to Libre Office. Check all your styles & headings, content page etc in LO Writer. Working here for years and hundreds of conversions.

Quote:
But if I try and do the save to docx thing, LO insists on making my Heading 1 (etc.) chapter titles into numbered lists, which totally messes up the epub titles.
No, it doesn't. Stop using Open Office and Check the properties of the styles, especially for headings/chapters.

Also don't use a named style of page in "Insert page break" before a heading in the style properties.

Have the Styles and Formatting List window beside the main edit window. Right click on Modify on style after clicking on a chapter head.

In Paragraph style click "Outline and Numbering" tab:
Outline level is Heading level. I use 2 rather than 1 for chapter headings.
Numbering style: None

On "Text Flow" tab for chapters or headings with a page break before:
Breaks: Tick "Insert" and Type: Page Position: Before but leave "With page style" empty.

Note any headings that should not be in the TOC/Contents page/Index, even if they make a page break, should be "Level": Text Body. You can make them look like a heading and Insert Page Break Before. Only set Heading Levels for items to be index/TOC/Contents page etc.
Quoth is offline   Reply With Quote
Old 09-30-2022, 08:21 AM   #14
Quoth
Still reading
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 14,057
Karma: 105092227
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
Metadata:
Calibre can read title and comments from "Properties". Save ODT then Save As docx imported into metadata Title and Comments (which appears in epubs).
The default Calibre Author Last Name, First Name is read from docx too, but in LO it's set in Options > LibreOffice > User Data > Forename/Surname/initials

Also without setting that in LO it always opens at start. If the Forename/Surname/initials is set, then when you open an odt the cursor is at where it was on last save.

Don't swap back/forth between OO and LO, as that will mess up styles.
Only ever import a docx once. Then fix everything and only do an extra Save As for 3rd parties. Only edit LO created odt.
Quoth is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Use local file as cover image jma1 Recipes 1 03-09-2020 11:14 AM
Where else can a MOBI file have its cover image? Alissa Kindle Formats 6 07-13-2013 02:50 PM
I can't remove cover image from mobi file rockster Calibre 10 09-14-2012 06:59 PM
Extracting a cover image from lit file p3aul Calibre 6 07-25-2010 04:33 PM
Setting first HTML file Image as Cover? phnord Calibre 2 01-09-2010 03:13 AM


All times are GMT -4. The time now is 03:06 AM.


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