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-21-2017, 03:01 PM   #1
mpuech
Junior Member
mpuech began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Jun 2017
Location: France
Device: Vivlio Touch HD+ [PB632]
Merge cover and metadata in epub

Hello,

I've modified the metadata of an epub.
So in the directory there is a cover.jpg, a metadata.opf and the epub file.
Is it possible to include the jpg and the opf in the epub ?

I use Calibre 1.25 with Ubuntu 14.

Regards,
mpuech is offline   Reply With Quote
Old 06-21-2017, 03:04 PM   #2
itimpi
Wizard
itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.
 
Posts: 4,553
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
Quote:
Originally Posted by mpuech View Post
Hello,

I've modified the metadata of an epub.
So in the directory there is a cover.jpg, a metadata.opf and the epub file.
Is it possible to include the jpg and the opf in the epub ?

I use Calibre 1.25 with Ubuntu 14.

Regards,
They ARE already included in the .epub file.

Calibre keeps a copy of the cover for display in the GUI as not all formats support covers. The .opf file is kept to allow for recovery when/if the Main Calibre metadata database gets corrupted.
itimpi is offline   Reply With Quote
Advert
Old 06-21-2017, 04:08 PM   #3
mpuech
Junior Member
mpuech began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Jun 2017
Location: France
Device: Vivlio Touch HD+ [PB632]
Quote:
Originally Posted by itimpi View Post
They ARE already included in the .epub file.

Calibre keeps a copy of the cover for display in the GUI as not all formats support covers. The .opf file is kept to allow for recovery when/if the Main Calibre metadata database gets corrupted.
Thanks for your quick reply, but I'm not sure I was comprehensible (sorry I'm french).

I modified the comments and changed the cover at 21:21, but the epub last modification didn't change:
max@pc-max:~$ ls -l "/home/max/Bibliothèque calibre/Collectif/Guide d'autodefense numerique _ Tome 1 -- hors connexions (6973)"
-rw-rw-r-- 1 max max 56194 juin 21 21:43 cover.jpg
-rw-rw-r-- 1 max max 197242 juin 21 19:05 Guide d'autodefense numerique _ Tome 1 -- - Collectif.epub
-rw-rw-r-- 1 max max 3498 juin 21 21:43 metadata.opf

If I copy only the epub in another place, import it with Calibre, the comments and the cover aren't modified.

max@pc-max:~$ ls -l "/home/max/Bibliothèque calibre/Collectif/Guide d'autodefense numerique _ Tome 1 -- hors connexions (7029)"
-rw-rw-r-- 1 max max 12235 juin 21 21:51 cover.jpg
-rw-rw-r-- 1 max max 197242 juin 21 21:51 Guide d'autodefense numerique _ Tome 1 -- - Collectif.epub
-rw-rw-r-- 1 max max 3508 juin 21 21:54 metadata.opf

A the importation, Calibre created a cover.jpg and a metadata.opf from the epub (you're right, they are in the epub) but there are the old ones.
I would like to distribute the epub with the new cover and comments.

Of course, the epub is free (https://guide.boum.org/).

Regards,
mpuech is offline   Reply With Quote
Old 06-21-2017, 08:52 PM   #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: 21,715
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@mpuech - when you update metadata and/or cover the format files are NOT updated.

If you use Send to Device, or Save to Disk the copy of the format file sent or saved (e.g. the EPUB) will contain the current metadata and cover.

If you want to update the EPUB in the library with the current metadata and cover, the simplest way is to use the Polir des livres tool (press 'P', or add to toolbar).

BR
BetterRed is offline   Reply With Quote
Old 06-22-2017, 05:22 AM   #5
mpuech
Junior Member
mpuech began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Jun 2017
Location: France
Device: Vivlio Touch HD+ [PB632]
Quote:
Originally Posted by BetterRed View Post
@mpuech - when you update metadata and/or cover the format files are NOT updated.

If you use Send to Device, or Save to Disk the copy of the format file sent or saved (e.g. the EPUB) will contain the current metadata and cover.

If you want to update the EPUB in the library with the current metadata and cover, the simplest way is to use the Polir des livres tool (press 'P', or add to toolbar).

BR
Thanks a lot BetterRed, Polir des livres is what I was looking for!

I just have a warning:
Code:
Failed to initialize plugin: '/home/max/.config/calibre/plugins/KePub Metadata Writer.zip'
It's the 2.7.1 release and I also have "Set EPUB metadata" 1.25.0.

Regards,

Last edited by mpuech; 06-22-2017 at 06:09 AM.
mpuech is offline   Reply With Quote
Advert
Old 06-22-2017, 07:09 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: 21,715
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by mpuech View Post
Code:
Failed to initialize plugin: '/home/max/.config/calibre/plugins/KePub Metadata Writer.zip'
It's the 2.7.1 release and I also have "Set EPUB metadata" 1.25.0.
I'm not familiar with KePub Metadata Writer, its not in the optional plugin index, and I can't see it in the list of built-in plugins.

Why are you using such an old version of calibre - 1.25 was released in early 2014, there have been about 100 new versions since then? Latest versions are at ==>> calibre - Download calibre.

BR
BetterRed is offline   Reply With Quote
Old 06-22-2017, 08:57 AM   #7
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,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by mpuech View Post
I just have a warning:
Code:
Failed to initialize plugin: '/home/max/.config/calibre/plugins/KePub Metadata Writer.zip'
It's the 2.7.1 release and I also have "Set EPUB metadata" 1.25.0.
I don't know of a reason it wouldn't work. It is working with 3.0 and 1.48 on my Windows machine. I'd suggest removing it and installing it again.

@BR: KePub Metadata Writer is in the plugin index. It's the only metadata writer plugin.
davidfor is offline   Reply With Quote
Old 06-22-2017, 03:18 PM   #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: 31,038
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Possible Python version (too low)
theducks is offline   Reply With Quote
Old 06-22-2017, 06:05 PM   #9
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: 21,715
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by davidfor View Post
@BR: KePub Metadata Writer is in the plugin index. It's the only metadata writer plugin.
I suspect I tried to find 'keypub' in the index. I saw it when I was editing the index for Doitsu, but I had rush off to the Leichhardt Palace

BR
BetterRed is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
having metadata.opf, cover.jpg + title.[pdf|epub|..] what's the best function to use? kabirmaar Development 2 06-21-2017 03:33 PM
Merge books, how to select FIRST book or MERGE metadata? rboatright Library Management 11 08-20-2016 11:01 AM
Bulk metadata download and merge tags and select larger cover(s) hiperlink Calibre 2 03-26-2014 03:58 AM
convert ePub to ePub Cover and Metadata only Maggie-Me Conversion 4 06-19-2011 10:25 AM
Merge metadata from other lib drMerry Library Management 6 05-04-2011 06:41 PM


All times are GMT -4. The time now is 05:36 PM.


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