![]() |
#1 |
Enthusiast
![]() Posts: 43
Karma: 10
Join Date: Jun 2010
Device: Kindle 3
|
Adding Pictures As Covers
I have tons of comics which I am adding to calibre with no problem. The problem comes with adding jpgs to the database for use as covers. I have jpgs of all the covers, and it is getting real tedious dragging and dropping each jpg to the database. All of my jpgs have the exact name as the pdf or cbr I was adding. I was wondering if there was a way to add a bulk of jpgs to the database and then they would be automatically added as covers to the ebooks with matching filenames.
|
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,130
Karma: 91256
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
|
That sounds like it could be automated using the command line. I'm guessing that a combination of ebook-meta and some scripting should get you there.
Edit: You should read the documentation for ebook-meta. It might be that you have to do this before adding the books to the library. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Enthusiast
![]() Posts: 43
Karma: 10
Join Date: Jun 2010
Device: Kindle 3
|
Thank you for your response, but I have no clue about ebook-meta or scripting. Could you point me into the right direction?
|
![]() |
![]() |
![]() |
#4 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,130
Karma: 91256
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
|
Quote:
|
|
![]() |
![]() |
![]() |
#5 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
Other methods include:
Last edited by Starson17; 10-24-2010 at 11:58 AM. |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,130
Karma: 91256
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
|
|
![]() |
![]() |
![]() |
#7 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Yes. If the cover.jpg file exists, Calibre uses it as the cover. If not, it uses the default. The existence or lack is not stored in the metadata.db. It probably is stored in metadata.opf, but AFAIK, that file's just used for backup. I know it's not used for Merge, Copy to Library or for displaying the cover when Edit metadata is used.
|
![]() |
![]() |
![]() |
#8 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,130
Karma: 91256
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
|
Okay, that would permit another scripting approach: Get list of all cover filenames, extract author and title from the filenames, figure out the corresponding folder in the library, copy image to cover.jpg.
|
![]() |
![]() |
![]() |
#9 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
A table (like a plugboard) that says get the author and title from the filename, the series from the directory name, the book cover from the jpg image that matches the file title, and all other metadata (publisher, etc) from internal metadata would be nice. It's on Kovid's ToDo, which gets longer each day. (One of the few things with a length that grows faster than the speed of light - it's a good thing Kovid has a Physics background). |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Covers, covers and damn statistics (wait, I got that wrong). | Moejoe | Writers' Corner | 86 | 11-29-2010 08:34 PM |
Covers vs. Pictures? | hnoto | Calibre | 2 | 12-31-2009 05:49 PM |
Adding pictures to epub from a txt file | p3aul | Calibre | 3 | 04-16-2009 06:05 PM |
Book Designer Vista and Allowing Book Covers and Pictures | andyafro | Sony Reader | 0 | 01-22-2008 09:49 PM |
Adding book covers with sony connect reader | jhempel24 | Sony Reader | 2 | 01-22-2008 08:42 AM |