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 12-07-2020, 10:27 AM   #1
nando-debug
Junior Member
nando-debug began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Dec 2020
Device: Kindle paperwhite
ebook-convert settings problem

Hello everyone, I already apologize for the question, but I could not find any information about it.
I tried to convert, via the command line, an ebook in .epub format to a .mobi caliber format, inserting options, but they don't seem to work.
I would like to have the first image removed from the file during the conversion and then inserted the one from the metadata.

The command I entered is this:

Code:
ebook-convert file_name.epub file_name.mobi --remove-first-image --prefer-metadata-cover
Is correct? Unfortunately the result doesn't return what it should. In fact the file is converted without these options.
Thanks in advance for the help.
nando-debug is offline   Reply With Quote
Old 12-07-2020, 10:37 AM   #2
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,745
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Why would you remove the cover and convert to Mobi when you should be converting to KF8 and keeping the cover?
JSWolf is offline   Reply With Quote
Advert
Old 12-07-2020, 10:42 AM   #3
nando-debug
Junior Member
nando-debug began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Dec 2020
Device: Kindle paperwhite
Quote:
Originally Posted by JSWolf View Post
Why would you remove the cover and convert to Mobi when you should be converting to KF8 and keeping the cover?
I think I did not understand. Why shouldn't I be able to convert it by replacing the cover with the one I want?
nando-debug is offline   Reply With Quote
Old 12-07-2020, 11:15 AM   #4
nando-debug
Junior Member
nando-debug began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Dec 2020
Device: Kindle paperwhite
The problem is that through GUI I can do this, but not through the command line.
This doesn't work for any conversion I've tried, even converting to .azw3 format, but it doesn't change.
nando-debug is offline   Reply With Quote
Old 12-07-2020, 02:55 PM   #5
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,745
Karma: 145864619
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 nando-debug View Post
The problem is that through GUI I can do this, but not through the command line.
This doesn't work for any conversion I've tried, even converting to .azw3 format, but it doesn't change.
Since you are converting from ePub, use the GUI with the Modify ePub plugin or one of the Polish options. This will change the cover in the ePub and then you can convert to KF8 from there for your Paperwhite.

I've never tried to replace the cover from the command line. I don't know if it can be done. But I see no problem doing this from the GUI.
JSWolf is offline   Reply With Quote
Advert
Old 12-07-2020, 09:36 PM   #6
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,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Add -vv to the conversion and you will see exactly what options it is running with and you can compare it to the log from the GUI conversion to check.
kovidgoyal is offline   Reply With Quote
Old 12-08-2020, 04:08 PM   #7
nando-debug
Junior Member
nando-debug began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Dec 2020
Device: Kindle paperwhite
Quote:
Originally Posted by kovidgoyal View Post
Add -vv to the conversion and you will see exactly what options it is running with and you can compare it to the log from the GUI conversion to check.
Thanks to your suggestion I understand what settings it uses. As options I used:
Code:
--remove-first-image --cover [cover-path]
In this way I was able to remove the cover of the file and take the cover in the book folder.
Thanks so much again for the help!
nando-debug is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ebook-convert problem with page_styles.css gogu1904 Conversion 4 08-30-2020 03:34 AM
ebook-convert and Kindle guid problem aschiller Conversion 1 07-24-2012 02:59 AM
Problem with covers converting from ePub to MOBI using ebook-convert Diego Conversion 6 06-01-2011 02:18 PM
ebook-convert: change settings from command line miwie Calibre 1 11-30-2010 02:05 PM
ebook-convert HTML to EPUB and problem with <pre><code> mikegr Calibre 2 03-09-2010 02:27 PM


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


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