Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 06-13-2015, 02:22 PM   #1
steve j
Junior Member
steve j began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jun 2015
Device: kindle; nexus 7
Add cover image from path

Currently I use Book Collector from Collectorz.com for my paper ("real") books and calibre for my ebooks.
I am thinking about ditching Collectorz and adding all my data into calibre.
I have managed to export all my data from Collectorz and using "Add books by ISBN" and "Import List" plugin I have added most details.
What I want to do is add my cover pictures automatically where the "download metadata" plugins cannot find them. They are all on my hard disk, and I can create a CSV file with the path, but I cannot see any way of getting calibre to use this information to add the picture to the calibre library.
Is there a plugin or feature which does this, or will I have to copy them across manually?
steve j is offline   Reply With Quote
Old 06-13-2015, 04:02 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,932
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by steve j View Post
Currently I use Book Collector from Collectorz.com for my paper ("real") books and calibre for my ebooks.
I am thinking about ditching Collectorz and adding all my data into calibre.
I have managed to export all my data from Collectorz and using "Add books by ISBN" and "Import List" plugin I have added most details.
What I want to do is add my cover pictures automatically where the "download metadata" plugins cannot find them. They are all on my hard disk, and I can create a CSV file with the path, but I cannot see any way of getting calibre to use this information to add the picture to the calibre library.
Is there a plugin or feature which does this, or will I have to copy them across manually?
You will need to wrap things in some sort of a script using this CLI section to insert.
http://manual.calibre-ebook.com/gene...book-meta.html

You will need to do more (use other CLI sections) , to match things up
theducks is offline   Reply With Quote
Advert
Old 06-13-2015, 04:15 PM   #3
steve j
Junior Member
steve j began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jun 2015
Device: kindle; nexus 7
Quote:
Originally Posted by theducks View Post
You will need to wrap things in some sort of a script using this CLI section to insert.
http://manual.calibre-ebook.com/gene...book-meta.html

You will need to do more (use other CLI sections) , to match things up
Thanks.
I feared as much.
Since this is a one-off exercise, and I don't know the programming language, and have never written code for calibre, it will probably be easier to do this manually.
steve j is offline   Reply With Quote
Old 06-15-2015, 12:56 AM   #4
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Use whatever CLI language you do know to tear apart the CSV and feed the values therein to command-line switches passed to calibredb.

If you can provide an example of what the CSV looks like, people may be able to help.
eschwartz is offline   Reply With Quote
Old 06-15-2015, 02:13 PM   #5
steve j
Junior Member
steve j began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jun 2015
Device: kindle; nexus 7
Quote:
Originally Posted by eschwartz View Post
If you can provide an example of what the CSV looks like, people may be able to help.
Thanks for the offer. I can make the CSV file look like whatever you like. I have provided an example with line 1 as field names and the other three lines individual books, one book per line.
The file I have created is a tab separated file without delimiters, but I can change anything at all. I can also add other fields if necessary.


Code:
Title	Author	ISBN	Front Cover
The Meccano System Compendium	Gamble, Jim	9780904568158	C:\Documents and Settings\Stephen\My Documents\Collectorz\Book Collector\Images\The Meccano System Compendium 3010_f.bmp
Frank Hornby - the boy who made $1,000,000 with a toy	Gould, Maurice Philip	9780904568011	C:\Documents and Settings\Stephen\My Documents\Collectorz\Book Collector\Images\Frank Hornby - Gould, Maurice 6250_f.bmp
The Products Of Binns Road	Randall, Peter	9780904568066	C:\Documents and Settings\Stephen\My Documents\Collectorz\Book Collector\Images\The Products Of Binns Road - R2901_f.bmp
What I want to do is match an existing book based on author/title/isbn and add the picture to the calibre library to show in the browser as the front cover of the book. This will presumably include copy the picture to the correct folder in the library.

Last edited by steve j; 06-15-2015 at 02:22 PM.
steve j is offline   Reply With Quote
Advert
Old 06-16-2015, 10:49 AM   #6
steve j
Junior Member
steve j began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jun 2015
Device: kindle; nexus 7
A simplification.

I can put the entire path of the image (eg C:\my pictures\pic1.jpg) into a custom field in calibre.

From that information all I really need to do is copy the picture to the appropriate calibre folder, and get calibre to recognise that as the Cover Picture.
steve j is offline   Reply With Quote
Old 06-16-2015, 11:06 AM   #7
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,932
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
the cover picture is always named cover.jpeg once it lands in the books folder
But there there is also an entry made in the DB and I don't think it is generated by discovery , but during the book or cover add processing.
theducks is offline   Reply With Quote
Old 06-16-2015, 11:39 AM   #8
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,358
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Check Library (click on the Library, library maintenance, check library) checks for new and deleted cover.jpg files, offering you the option of updating (fixing) the calibre database.
chaley is offline   Reply With Quote
Old 06-16-2015, 12:11 PM   #9
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,932
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by chaley View Post
Check Library (click on the Library, library maintenance, check library) checks for new and deleted cover.jpg files, offering you the option of updating (fixing) the calibre database.
Wow!
I never messed up covers so I never discovered that bit.
theducks is offline   Reply With Quote
Old 06-16-2015, 02:50 PM   #10
steve j
Junior Member
steve j began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jun 2015
Device: kindle; nexus 7
Thanks for all your help.

What I actually did, which works well, is this
* Export all required data (including Cover path) from my existing (Collectorz) database.
* Import all this data into calibre (using Import List plugin). The original cover path is put into a temporary user field
* In calibre, I select all books and Edit Metadata in bulk|Create default cover - this is the critical step to create a placeholder for the cover, and also determine what the actual path is
* In calibre Convert Books | create catalog - to create a CSV file with two columns - cover path (calibre) and cover path from orig system (in temp user field)
* now I wrote a quick external program which copied the actual files from the original path to the new path

In my tests I didn't have to refresh the library.

I'm not sure I did what you suggested - indeed I'm sure I didn't - but without your help I wouldn't have found this solution.

Brilliant - thanks again to everyone.
steve j is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I find out where the font path of Iriver Cover Story mrfirm iRiver Story 3 07-22-2013 12:40 PM
Cover image isn't displaying as cover image Eugene88 Sigil 3 08-15-2012 04:05 PM
How to best add a cover image? Alda Sigil 19 07-18-2012 10:51 AM
Add image causes crash critcher Sigil 14 02-10-2012 01:57 PM
Add new image soleilos Plugins 1 08-14-2011 06:07 AM


All times are GMT -4. The time now is 04:16 AM.


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