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 08-18-2025, 07:06 AM   #1
abogdan1
Junior Member
abogdan1 began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Aug 2025
Device: Kindle Paperwhite
Mobi KF8 converted from Epub unable to open

Hello
I am trying to convert .epub file into .mobi file using ebook-convert. I need new mobi version (KF8). After conversion, the mobi file opens on my computer. However, when I transfer it to my Kindle (Kindle Paperwhite 4), I get the following message:
Unable to Open Item
The selected item could not be opened. If you purchased this item from Amazon, delete the item and download it again from Cloud on Home.

Has anyone else had this problem, and how can I get around it?

Both the input and output files attached.

The command I use:
ebook-convert in.epub out.mobi --dont-compress --mobi-keep-original-images --mobi-file-type new
Spoiler:

Conversion output:
Conversion options changed from defaults:
mobi_keep_original_images: True
dont_compress: True
mobi_file_type: 'new'
1% Konwertuję plik źródłowy na plik HTML...
InputFormatPlugin: EPUB Input running
on /xxx/xxx/xxx/xxx/in.epub
Found HTML cover OPS/coverpage.xhtml
Parsing all content...
34% Trwają procesy transformacji e-booka...
Merging user specified metadata...
Detecting structure...
Detected chapter: xxxxx Lorem ipsum dolor sit amet consectetur adipi
Detected chapter: XXXX Lorem ipsum dolor sit amet consectetur adipis
Detected chapter: XXX Lorem ipsum dolor sit amet consectetur adipisc
Flattening CSS and remapping font sizes...
Source base font size is 13.20000pt
Removing fake margins...
Cleaning up manifest...
Trimming unused files from manifest...
Creating MOBI Output...
67% Działa wtyczka MOBI Output
Serializing resources...
Splitting markup on page breaks and flow limits, if any...
Creating KF8 output
Generating in-line ToC
Generating KF8 markup...
Creating indices...
MOBI output written to /xxx/xxx/xxx/xxx/out.mobi
Plik wyjściowy zapisany do /xxx/xxx/xxx/xxx/xxx.mobi
Attached Files
File Type: epub in.epub (739.6 KB, 31 views)
File Type: mobi out.mobi (776.4 KB, 22 views)

Last edited by theducks; 08-18-2025 at 07:47 AM. Reason: Please SPOILER Logs
abogdan1 is offline   Reply With Quote
Old 08-19-2025, 08:08 AM   #2
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,353
Karma: 105899727
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
New mobi KF8 = azw3/KF8

Use azw3. "New mobi KF8" is for dual mobi where you don't know if it's a gen1, gen2 kindle (the only ones needing old mobi) or gen3 and later.


See does current file work if renamed to azw3.
Quoth is offline   Reply With Quote
Old 08-20-2025, 03:29 AM   #3
abogdan1
Junior Member
abogdan1 began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Aug 2025
Device: Kindle Paperwhite
Thank You for Your response.
You're right. azw3 opens on my kindle.
But there is problem with styles. Epub has special styles for dark mode (because of eaa - european accessibility act). When I convert epub to mobi/azw3 the letters are pale and it is impossible to read the book. That was the reason why I wanted to convert it as I mentioned.
So maybe is there a way to convert epub to mobi/azw3 without epub styles?

And why azw3 opens on my kindle and out.mobi does not?
abogdan1 is offline   Reply With Quote
Old 08-20-2025, 03:39 AM   #4
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 13,637
Karma: 241126341
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Quote:
Originally Posted by abogdan1 View Post
Thank You for Your response.
You're right. azw3 opens on my kindle.
But there is problem with styles. Epub has special styles for dark mode (because of eaa - european accessibility act). When I convert epub to mobi/azw3 the letters are pale and it is impossible to read the book. That was the reason why I wanted to convert it as I mentioned.
So maybe is there a way to convert epub to mobi/azw3 without epub styles?
When converting, check the box before Colors in Look & Feel -> Styling -> Select what style information you want completely removed and enter color in Look & Feel -> Styling -> Other CSS Properties.

Last edited by Sirtel; 08-20-2025 at 03:42 AM.
Sirtel is online now   Reply With Quote
Old 08-20-2025, 03:53 AM   #5
abogdan1
Junior Member
abogdan1 began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Aug 2025
Device: Kindle Paperwhite
Ooo, thank You Sirtel, now it looks nice!
Do you know if I am able to do it with command tool (eboook-convert) ?
ebook-convert in.epub out.azw3 --filter-css color?
abogdan1 is offline   Reply With Quote
Old 08-20-2025, 03:55 AM   #6
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 13,637
Karma: 241126341
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Quote:
Originally Posted by abogdan1 View Post
Ooo, thank You Sirtel, now it looks nice!
Do you know if I am able to do it with command tool (eboook-convert) ?
ebook-convert in.epub out.azw3 --filter-css color?
Well, you can try. I know nothing about command line, sorry.
Sirtel is online now   Reply With Quote
Old 08-20-2025, 04:31 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,353
Karma: 105899727
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
Quote:
Originally Posted by abogdan1 View Post
And why azw3 opens on my kindle and out.mobi does not?
It expects a *.mobi to have KF7 (old mobi) inside it.
Quoth is offline   Reply With Quote
Old 08-20-2025, 06:46 AM   #8
abogdan1
Junior Member
abogdan1 began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Aug 2025
Device: Kindle Paperwhite
Thank You both!

There is one last thing I would like to know in this matter. My epub has style with @media:
@media (prefers-color-scheme: dark) {}

I would like to remove it during conversion using command tool: ebook-convert.

Does anyone have any knowledge on this subject?
abogdan1 is offline   Reply With Quote
Old 08-20-2025, 08:26 AM   #9
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,983
Karma: 147448039
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by abogdan1 View Post
Thank You both!

There is one last thing I would like to know in this matter. My epub has style with @media:
@media (prefers-color-scheme: dark) {}

I would like to remove it during conversion using command tool: ebook-convert.

Does anyone have any knowledge on this subject?
You are best to edit the CSS and HTML by hand using the editor. That way you can get rid what you don't want and fix what needs fixing.
JSWolf is offline   Reply With Quote
Old 08-21-2025, 09:25 AM   #10
abogdan1
Junior Member
abogdan1 began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Aug 2025
Device: Kindle Paperwhite
Thank you all.
Unfortunately, I can't use the editor. I'm programming an application and need to use a command-line tool.
My solution is:
ebook-convert in.epub out.mobi --mobi-file-type old --filter-css color --extra-css "body { background-color: #fff; color: #000; }"
abogdan1 is offline   Reply With Quote
Old 08-21-2025, 11:06 AM   #11
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,353
Karma: 105899727
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
Old mobi is ghastly and obsolete before Amazon adopted it for the Kindle in 2017. Actually obsolete when Amazon bought Mobipocket in 2005!

Only gen1 & gen 2 Kindles need it. The azw3 was backported to older models, as old as K3.
Quoth is offline   Reply With Quote
Old 08-21-2025, 11:26 AM   #12
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,983
Karma: 147448039
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by abogdan1 View Post
Thank you all.
Unfortunately, I can't use the editor. I'm programming an application and need to use a command-line tool.
My solution is:
ebook-convert in.epub out.mobi --mobi-file-type old --filter-css color --extra-css "body { background-color: #fff; color: #000; }"
You do not want color codes. You'll have to forgo your app and use the editor. It's the only way to make sure you get the CSS correct.
JSWolf is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to open .mobi or .epub in windows eloigorri Calibre 11 06-18-2020 06:06 AM
kindle can't open converted mobi from epub xiatian Conversion 5 08-27-2019 01:53 AM
book converted to mobi takes 5 minutes to open darwinsgate Conversion 3 08-18-2013 08:16 PM
can't open .mobi converted from epub on paperwhite perler Devices 1 12-25-2012 10:00 PM
mobi to epub conversion fail and unable to open vulcan_girl Conversion 1 12-24-2012 01:27 PM


All times are GMT -4. The time now is 07:01 PM.


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