|
|
Thread Tools | Search this Thread |
05-25-2011, 10:44 PM | #1 |
Junior Member
Posts: 5
Karma: 10
Join Date: May 2011
Device: Kindle3
|
Problem with covers converting from ePub to MOBI using ebook-convert
I am trying to convert ePubs to MOBI in Windows using ebook-convert (last version). Everything works OK, except for the ebook covers, that after the conversion have white margins that are not in the original ones.
I tried the debug option in the GUI and I found out that the cover with white margin is generated by Calibre and named calibre_raster_cover.jpg. The GUI process eventually drops it but the command line keeps it as the final cover. I opened a bug but Kovid closed it because the command line and the GUI use exactly the same code, so the problem is in another place. I am executing the following command: Code:
C:\Program Files\Calibre2>ebook-convert.exe c:\file.epub c:\file.mobi --output-profile=kindle I have attached a zip file with the original ePub and the MOBI files I obtain with the GUI and the command line. Does anyone know a solution? All I want is the command line to provide MOBI files like the ones from the GUI. Thanks in advance. Last edited by Diego; 05-25-2011 at 10:48 PM. Reason: I have attached a file. |
05-26-2011, 12:41 AM | #2 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Use --cover to set the cover.
Last edited by kovidgoyal; 05-26-2011 at 12:57 AM. |
Advert | |
|
05-26-2011, 01:01 AM | #3 |
Junior Member
Posts: 5
Karma: 10
Join Date: May 2011
Device: Kindle3
|
Thanks for answering.
But if I use --cover, I should have an external image, right? That is not the case. Should I extract the cover image first from the ePub? Thanks again. |
05-27-2011, 03:53 PM | #4 |
Junior Member
Posts: 5
Karma: 10
Join Date: May 2011
Device: Kindle3
|
Does anybody else could help me to solve this problem?
Last edited by Diego; 05-27-2011 at 08:50 PM. |
05-29-2011, 09:41 AM | #5 |
Wizard
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
|
It's most likely because you're epub is using SVG cover images - Calibre needs to rasterize SVG images in order to make them display in mobi.
Try using --cover with an external file as Kovid said (go ahead and extract from the epub). Calibre will probably automatically avoid using the existing epub cover if it's marked correctly semantically, but if it doesn't you can use the remove first image option (not sure of the ebook convert argument, check the docs). |
Advert | |
|
05-29-2011, 05:00 PM | #6 |
Junior Member
Posts: 5
Karma: 10
Join Date: May 2011
Device: Kindle3
|
No, my ePub's covers are JPG (you can check it in my files attached to the first post). Anyway, I will extract them from the ePubs and then use --cover to generate the MOBI file.
Thanks, ldolse. |
06-01-2011, 02:18 PM | #7 |
Junior Member
Posts: 5
Karma: 10
Join Date: May 2011
Device: Kindle3
|
In case anyone needs a solution to this issue (at least for me), I solved it extracting the epub's cover with:
Code:
C:\Program Files\Calibre2>ebook-meta.exe --get-cover=PATH&FILENAME Code:
C:\Program Files\Calibre2>ebook-convert.exe c:\file.epub c:\file.mobi --cover=PATH&FILENAME --output-profile=kindle |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem converting LDS MOBI file to ePub with Calibre 0.7.29 | jbennion | Calibre | 6 | 10-21-2012 10:03 PM |
Problem converting ePub to Mobi | Wordslinger | Conversion | 3 | 03-12-2011 11:04 PM |
Table of contents problem converting from mobi to epub | dlmecum | Calibre | 7 | 01-21-2011 07:07 PM |
Problem converting large mobi book to epub | maximus83 | Calibre | 8 | 01-03-2011 05:46 PM |
list problem when converting epub to mobi (using calibre) | bluetux | Calibre | 0 | 12-05-2010 10:06 AM |