Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 12-01-2014, 03:54 AM   #1
ghappe
Junior Member
ghappe doesn't litterghappe doesn't litter
 
Posts: 9
Karma: 176
Join Date: Dec 2014
Device: Computer
Lightbulb Plug-in for adding covers from disk

Hello there,

I'm rather new to Calibre, just testing if it will support my collection of 35.000 e-books.

First problem I've run into is that, since I have all the covers of these books as a separate .jpg files on disk I'll manually have to go trough them and add them in "Edit Meta-data Individually", and that looks like a lot of work.

Could this not be achieved by a plug-in to be added to the "Download Covers" option in "Download Meta-data And Covers", just like the rest of the external sources on the internet but then a named directory on disk?

Is there such a option or other workaround?, and if not, is anyone willing to create one?

Love to hear from you, so, kind greetings,

Guido Happé
ghappe is offline   Reply With Quote
Old 12-01-2014, 04:39 AM   #2
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,570
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@ghappe - if you could organise your ebooks into one folder per book and merge the covers into the folders then I think you you could use the Add Books one book per folder option - you may have to rename the jpgs to cover.jpg, once they were in the book folders of course. You could probably do that with a couple of scripts, there are people here who can probably help you with that.

What conventions do you use for existing book file and cover file names ? And what operating/file system?

BR

Last edited by BetterRed; 12-01-2014 at 04:44 AM.
BetterRed is offline   Reply With Quote
Advert
Old 12-01-2014, 04:55 AM   #3
ghappe
Junior Member
ghappe doesn't litterghappe doesn't litter
 
Posts: 9
Karma: 176
Join Date: Dec 2014
Device: Computer
Hello BetterRed,

Using Win 8.1 and j.rivers MediaCenter as application, which works fine for my 35.000 Cd albums but a bit limited for e-books (All e-Pub's).

Convention on disk is \media-type\Author\Title\series_index - title - serie - language - author-sort.file-type which makes it available to many other applications.

Hope this answers your question.

Kind greetings,

Guido
ghappe is offline   Reply With Quote
Old 12-01-2014, 06:24 AM   #4
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,570
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Where are the jpgs in relationship to the epubs - if they're in the \media-type\Author\Title folders as series_index - title - serie - language - author-sort.jpg then try renaming them to cover.jpg and then use the Add Books->one book per folder option.

When your ready a search for "Windows Recursive Rename" will provide links to suitable scripts to do the renaming in bulk, also utilities. If you're not comfortable at the command line try Bulk Rename Utility (BRU), ANT Rename is also good.

I hope you've copied a subset of your mediacentre library for testing. I'd hate to think I might suggest something that would wipe out all you videos, music, books, photos and tax returns

BR
BetterRed is offline   Reply With Quote
Old 12-01-2014, 06:38 AM   #5
ghappe
Junior Member
ghappe doesn't litterghappe doesn't litter
 
Posts: 9
Karma: 176
Join Date: Dec 2014
Device: Computer
Hello BetterRed,

Thanks for yoyr reply and Yes, there in the same folder and renaming them to cover.jpg is no problem, however after importing them with Add Books->one book per folder option. I still have NO cover with the book, so, What am I missing here?

Kind greetings,

Guido
ghappe is offline   Reply With Quote
Advert
Old 12-01-2014, 07:37 AM   #6
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,570
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by ghappe View Post
Hello BetterRed,

Thanks for yoyr reply and Yes, there in the same folder and renaming them to cover.jpg is no problem, however after importing them with Add Books->one book per folder option. I still have NO cover with the book, so, What am I missing here?
I'm not sure, I've never actually tried to do what I'm suggesting you do - which is not my normal way of doing things here - I usually only post what I know works. These add settings worked for me.

Click image for larger version

Name:	Capture.JPG
Views:	244
Size:	114.4 KB
ID:	131845

But I think that means you wont be able to have a template to get the author, title and series etc from file name. Is that data embedded in the epubs, you can see what's there if you open one with the calibre viewer and click the blue 'i' button.

are the covers in the Books themselves ?

BR
BetterRed is offline   Reply With Quote
Old 12-01-2014, 10:09 AM   #7
ghappe
Junior Member
ghappe doesn't litterghappe doesn't litter
 
Posts: 9
Karma: 176
Join Date: Dec 2014
Device: Computer
Hello BetterRed,

If I use these settings, reading Meta-data from file-contents I get the cover that is already in the Epub, and that's not what I want.
Besides, if It could be don during initial loading of the books I still have the problem if I want to replace covers, without destroying all the edits i have made after loading the book into Calibre so I have to look elsewhere for a solution.

But thanks for your time and effort to help me.

Kind greetings,

Guido
ghappe is offline   Reply With Quote
Old 12-01-2014, 10:36 AM   #8
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: 29,803
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
look at the commandline tools help page: calibredb (add --cover section)

It will take some scripting effort to align your folders to the {id}

since not all books need covers:
search for: covers:false to show a list


additionally: some books may just have unidentified covers (and not the first image). The Quality check PI might help identify candidates for further work
theducks is offline   Reply With Quote
Old 12-01-2014, 11:05 AM   #9
ghappe
Junior Member
ghappe doesn't litterghappe doesn't litter
 
Posts: 9
Karma: 176
Join Date: Dec 2014
Device: Computer
Thank you, Duckies, (Nice cat by the way...)

unfortunately this is not going to help me, I'm not a programmer so...

Anyway I'm surprised that nobody brought this up before because I know quit a few people having the same problem (In fact it is mainly a migration issue) and there's even a friend of mine having over 200.000 publications, all e-pub, where the covers are external. (And I don't think he'll fancy adding them all manually)

So, question remains, is there a way to add any number of covers from disk or do I face the choice between 40 days of hard labour or look for an other application, which is probably hard to find.

Kind greetings,


Guido Happé
ghappe is offline   Reply With Quote
Old 12-01-2014, 04:15 PM   #10
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,570
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by ghappe View Post
Hello BetterRed,

If I use these settings, reading Meta-data from file-contents I get the cover that is already in the Epub, and that's not what I want.
Besides, if It could be don during initial loading of the books I still have the problem if I want to replace covers, without destroying all the edits i have made after loading the book into Calibre so I have to look elsewhere for a solution.

But thanks for your time and effort to help me.

Kind greetings,

Guido
@ghappe - Don't do any editing before the cover issue is resolved, copy a subset of what you have and work with that - a dozen books is probably enough.

calibre has 3.5 million active users, if any of them had this issue when they first built their libraries then they probably solved it via the existing facilities and some scripts. If anyone solved it with a PI it would have been a one-off hack peculiar to their environment that they possibly threw away.

The command line option theducks suggested is the what I suspect other people used within a script/batch file.

Can your media manager software inject 'your' covers into the epubs?

BR
BetterRed is offline   Reply With Quote
Old 12-01-2014, 04:54 PM   #11
ghappe
Junior Member
ghappe doesn't litterghappe doesn't litter
 
Posts: 9
Karma: 176
Join Date: Dec 2014
Device: Computer
Good morning BetterRed,

Oh, those time-zone's, reminds me of the past when I flew around the world to do my job, days long gone now, however, I have no facilities to insert the covers into the e-pub files, if I did I would not have this problem.

Still, I think that anyone who could create a plug-in for a website on the internet could easily change this code to do the same look-up in a local folder and I still think it strange that its not in the standard software because anyone having a large collection will likely customise or personalize the covers of branch dedicated e-pub's.

So, maybe one of the developers will pick this one up?

I'll be very much of-line for the next 12 hours, you know, sleep and things like that...

Have a nice day and smile to the world if you can.

Guido
ghappe is offline   Reply With Quote
Old 12-01-2014, 05:44 PM   #12
gbm
Wizard
gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.
 
Posts: 2,082
Karma: 8796704
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
Quote:
Originally Posted by ghappe View Post
Hello BetterRed,

If I use these settings, reading Meta-data from file-contents I get the cover that is already in the Epub, and that's not what I want.
Besides, if It could be don during initial loading of the books I still have the problem if I want to replace covers, without destroying all the edits i have made after loading the book into Calibre so I have to look elsewhere for a solution.

But thanks for your time and effort to help me.

Kind greetings,

Guido
Use the modify epub plug-in after you have imported into calibre to change covers. Look at one of the meta data plug-ins and modify it to do imports from a local folder.

bernie

Last edited by gbm; 12-01-2014 at 05:47 PM.
gbm is offline   Reply With Quote
Old 12-02-2014, 01:39 AM   #13
ghappe
Junior Member
ghappe doesn't litterghappe doesn't litter
 
Posts: 9
Karma: 176
Join Date: Dec 2014
Device: Computer
Good morning Bernie,

Yes, that's what I suggested in the first place but I wouldn't know where to start not being a programmer...

Kind greetings,

Guido
ghappe is offline   Reply With Quote
Old 12-02-2014, 02:26 AM   #14
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
It might be more natural to add this to the Import List plugin. It reads a CSV file to get metadata for books in the library. Specifying a file name for the cover and adding it to the metadata shouldn't be to hard.

And no, I am not volunteering.
davidfor is offline   Reply With Quote
Old 12-02-2014, 02:50 PM   #15
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: 29,803
Karma: 54830978
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 davidfor View Post
It might be more natural to add this to the Import List plugin. It reads a CSV file to get metadata for books in the library. Specifying a file name for the cover and adding it to the metadata shouldn't be to hard.

And no, I am not volunteering.
I was thinking that the 'dude' might have already had the option, so I looked harder at the PI

I agree, this is a logical place.

And NO, I don't code either (I can barely read (understand) some of what you all write ) for all of you for your efforts
theducks is offline   Reply With Quote
Reply

Tags
covers


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Save to disk, metadata and covers Pepin33 Library Management 6 09-19-2012 11:57 PM
Adding covers reemas Devices 1 04-27-2011 08:05 PM
Adding covers Sweetpea Calibre 5 12-01-2010 11:41 AM
Saving to disk, Calibre, epub & covers varaonaid Calibre 5 05-03-2010 01:27 PM


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


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