calibredb add -c ./cover.jpg not working

Bug #1562507 reported by Srinivas P on 2016-03-27
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

trying to add a new epub book with its cover. calibredb add x.epub -c cover.jpg is not adding the cover

Fixed in branch master. The fix will be in the next release. calibre is usually released every Friday.

 status fixreleased

Changed in calibre:
status: New → Fix Released
Srinivas P (srini8080) wrote :

It will be great if it adds a titlepage just like doing it in edit-ebook--->tools--->cover

calibredb only touches the database, it does not and will not make
changes to ebook files themselves.

Eli Schwartz (eschwartz) wrote :

calibredb already has an "embed_metadata" subcommand for that exact purpose, why on earth should adding the book automatically invoke that?

Srinivas P (srini8080) wrote :

Many ebook readers on Android look for the first html/xml/xhtml file to make the cover. So without the first file having the cover, they all look blank.

When you edit-ebook and add cover, the titlepage.xhtml file gets added. This will make the ebook readers show the cover int he app.

Kovid Goyal (kovid) wrote :

If you want to ensure an EPUB file has a titlepage, the command you need
is ebook-polish, not calibredb. Like this:

ebook-polish -c cover.jpg file.epub
calibredb add file.epub

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers