03-11-2024, 11:42 PM | #1 |
Wizard
Posts: 1,311
Karma: 6700864
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
Tools>Add Cover deletes files
Hello @kovidgoyal
Sorry to report a little bug I have stumbled across. When using the Tools>Add Cover, for some reason it deletes the first file. Check this video where I first delete the existing cover.xhtml file, then use the tool to add a new one... https://streamable.com/svebgh edit... And noticed that if there is an image file in that deleted file, it also deletes the image file. Last edited by Karellen; 03-11-2024 at 11:46 PM. |
03-12-2024, 12:17 AM | #2 |
creator of calibre
Posts: 44,351
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
if the existing file is marked as a cover it is replaced. This is by design.
|
Advert | |
|
03-12-2024, 12:31 AM | #3 |
Wizard
Posts: 1,311
Karma: 6700864
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
It's not marked as the cover.
You can see there is no icon next to it, and the video shows me deleting the actual cover file with the cover icon. |
03-12-2024, 12:51 AM | #4 |
creator of calibre
Posts: 44,351
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
if you have a book for which add cover deletes the first file when it isnt marked as a cover, by all means opena bug report and attach the book.
|
03-12-2024, 01:04 AM | #5 |
Wizard
Posts: 1,311
Karma: 6700864
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
It's not one book. It has happened to three consecutive books so far.
I don't have an account at your bug reporting site. |
Advert | |
|
03-12-2024, 01:23 AM | #6 |
creator of calibre
Posts: 44,351
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
I looked at your test file. It has a titlepage that is simple image wrapper. That will be detected as a cover page in the absence of any actual cover page. You need to either:
1) Use tools->add cover before deleting the existing cover page, so that it is replaced 2) Add some non image content to titlepage 3) Add the cover manually |
03-12-2024, 07:07 PM | #7 | ||
Wizard
Posts: 1,311
Karma: 6700864
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
Yep, I do that when I also own the pbook, and the pbook has a somewhat "decorative" title page which I scan and use in the ebook.
But I have been doing that for years, so don't know why it has suddenly become a problem, or if I have changed my workflow, not sure where I changed it to reveal this issue. Quote:
Quote:
Thanks for you help |
||
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Sigil's "Tools > Add Cover..." not auto resizing | PhilippeBruno | Sigil | 9 | 10-04-2023 09:12 AM |
How to use [Editor] Tools: add a cover? | Skydog | Editor | 17 | 08-05-2023 07:49 PM |
Calibre cant add djvu files with proper book cover | loviedovie | Calibre | 3 | 12-10-2022 03:21 PM |
Add new format in Edit Meta deletes file contents in Calibre | tpkacer | Introduce Yourself | 7 | 11-22-2010 12:43 PM |
add books deletes source files ? | cybmole | Calibre | 3 | 10-30-2010 10:54 AM |