![]() |
#1 |
Junior Member
![]() 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? |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
![]() |
#3 |
Junior Member
![]() 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? |
![]() |
![]() |
![]() |
#4 |
Bibliophist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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?
|
![]() |
![]() |
![]() |
#5 |
Junior Member
![]() 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. |
![]() |
![]() |
![]() |
#6 |
Member Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 805
Karma: 2091358
Join Date: May 2019
Device: Kindle Oasis 1st Gen, PB Era
|
|
![]() |
![]() |
![]() |
#7 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#8 | |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14,057
Karma: 105092227
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
Quote:
Then any other format is converted from epub. |
|
![]() |
![]() |
![]() |
#9 |
Junior Member
![]() 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. |
![]() |
![]() |
![]() |
#10 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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! |
![]() |
![]() |
![]() |
#11 |
Junior Member
![]() 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. |
![]() |
![]() |
![]() |
#12 | |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 450
Karma: 3886916
Join Date: May 2013
Location: Ontario, Canada
Device: Kindle KB, Oasis, Pop_Os!, Kobo Forma
|
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. 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. |
|
![]() |
![]() |
![]() |
#13 | |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
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. |
|
![]() |
![]() |
![]() |
#14 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
|
![]() |
||||
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 |