Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 06-17-2016, 08:12 PM   #1
MerlinMama
Evangelist
MerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beauty
 
MerlinMama's Avatar
 
Posts: 498
Karma: 32554
Join Date: May 2014
Location: Canada
Device: Kobo Sage
Cover Image?

Am I supposed to be seeing a cover.jpg in my files when I open editor? I never had it before, and now it seems to be automatically generated even after I delete it. I would personally prefer not to have it, but will leave it if it's necessary for some future reason. I mean, it has always shown up on my reader and the viewer without that file and I don't 'Mark as cover image', so...
MerlinMama is offline   Reply With Quote
Old 06-17-2016, 09:38 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: 31,062
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 MerlinMama View Post
Am I supposed to be seeing a cover.jpg in my files when I open editor? I never had it before, and now it seems to be automatically generated even after I delete it. I would personally prefer not to have it, but will leave it if it's necessary for some future reason. I mean, it has always shown up on my reader and the viewer without that file and I don't 'Mark as cover image', so...
Inside the Editor
Edit: Preferences: integration... (sidebar): Remove the tick: update Metadata...
theducks is offline   Reply With Quote
Old 06-17-2016, 11:52 PM   #3
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
That appears to be a change in 2.59. The change list includes:

Quote:
EPUB metadata: When setting a cover image for an EPUB file that has no metadata cover image defined, add the new cover image as a pure metadata cover instead of aborting.
Calibre has always update the cover when updating the metadata. But, this means it is also adding a cover image when there isn't already one. That might be good, but I have a large set of books that do not have a separate cover. The first page is a simple cover with the title and the author. This change means calibre is generating a cover from the first page and then adding it to the book later when updating the metadata. As it is updated when editing (as theducks pointed out, this can be turned off) or when the book is sent to the device.

Apart from adding a file that is useless to me (the Kobo devices render the first page for the cover), the problem I have is the cover image calibre adds no longer represents what I consider to be the cover. If I fiddle with that page after the book is added to calibre and that cover image is added to the file, updating the cover that calibre shows in the library means I have to delete that cover image from the book first. Personally, I'd like an option to turn this off without turning off the other metadata update.

There does seem to be a problem. Some of these books have the following in manifest:

Code:
<item id="cover" href="cover.xhtml" media-type="application/xhtml+xml"/>
When the image is added, the above is still there, but the following is added:

Code:
<item href="OEBPS/cover.jpg" id="-1.cover" media-type="image/jpeg"/>
Looking at the directory structure in the book, the "cover.xhtml" is in "OEBPS" and the "cover.jpg" is in "OEPBS/OEBPS".
davidfor is offline   Reply With Quote
Old 06-18-2016, 12:08 AM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,359
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I am confused. Adding a book to calibre does not modify the book in anyway. So unless you manually update metadata in the in-library copy using either the embed metadata tool or the edit book feature, you are not going to have the cover file added.

And I dont see what the problem with the location of cover.jpg is. Since cover.xhtml does not reference cover.jpg in any way.
kovidgoyal is offline   Reply With Quote
Old 06-18-2016, 01:17 AM   #5
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,359
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Here's an option to turn off adding of missing cover images: https://github.com/kovidgoyal/calibr...5402c2cd0138ae
kovidgoyal is offline   Reply With Quote
Old 06-18-2016, 01:30 AM   #6
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
From what was said, MerlinMama has the option set in the editor to add update the metadata when opening the book. I know that I had that option set. The comments are because there has been a change and these images weren't in the books before the latest calibre release.

For my report, I meant to be commenting on the "-1.cover" as the id. From the comment with the code check-in, I was expecting the id or a property to be set that an application would use to find the image. Or that it would be in a standard location.

What I hadn't noticed was the earlier line in the OPF:

Code:
<meta name="cover" content="-1.cover"/>
And that's obviously the way to find the cover image. That just leaves it as a weird looking id And that makes me wonder how many applications would reject it as invalid.

Edit: Thanks for the option.

Last edited by davidfor; 06-18-2016 at 01:36 AM. Reason: Remember to check for newer posts.
davidfor is offline   Reply With Quote
Old 06-18-2016, 01:55 AM   #7
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,359
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
The weird looking id is indeed a bug. It should be cover-1 not -1.cover That I fixed a little while ago.
kovidgoyal is offline   Reply With Quote
Old 06-18-2016, 06:01 AM   #8
MerlinMama
Evangelist
MerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beauty
 
MerlinMama's Avatar
 
Posts: 498
Karma: 32554
Join Date: May 2014
Location: Canada
Device: Kobo Sage
Quote:
Originally Posted by theducks View Post
Inside the Editor
Edit: Preferences: integration... (sidebar): Remove the tick: update Metadata...
Well, that won't really work, since I WANT to update Metadata, just not add a cover file that I don't use or reference in any way.

**I should note that this comes up mainly with my personal books and fanfiction books (that's what I'm working on now, so it's why I noticed) I add my own cover to those because I have Calibre set to the Cover Grid, but I don't really want/need a cover file in there. I've been lucky that 95%+ of my bought books so far do have their own cover.jpg and cover.xhtml, and I leave those be.

I just don't understand the point I suppose. If a book does not have a cover image, that added file is still going to just be the first page, isn't it? Unless some devices crash or don't work properly without it, in which case I understand the necessity of adding it in.

Until Kovid's fix comes into effect, I'll just have to remember to manually delete the file when saving
MerlinMama is offline   Reply With Quote
Old 06-18-2016, 03:19 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,731
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@MerlinMama - FWIW, I remove covers and update metadata in EPUBs with the Modify PI.

BR
BetterRed is offline   Reply With Quote
Old 06-18-2016, 08:47 PM   #10
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 MerlinMama View Post
Well, that won't really work, since I WANT to update Metadata, just not add a cover file that I don't use or reference in any way.

**I should note that this comes up mainly with my personal books and fanfiction books (that's what I'm working on now, so it's why I noticed) I add my own cover to those because I have Calibre set to the Cover Grid, but I don't really want/need a cover file in there. I've been lucky that 95%+ of my bought books so far do have their own cover.jpg and cover.xhtml, and I leave those be.

I just don't understand the point I suppose. If a book does not have a cover image, that added file is still going to just be the first page, isn't it? Unless some devices crash or don't work properly without it, in which case I understand the necessity of adding it in.
Yes, this is to improve compatibility with some readers or apps. Some are looking for an image in the book that is marked as the cover. The Kobo ereaders handle epubs by rendering the first page. But, for the kepubs, it is using an image in the book. Which image is defined in the OPF in a different way than defined here.
davidfor is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cover image isn't displaying as cover image Eugene88 Sigil 3 08-15-2012 04:05 PM
cover image lionelsnod Feedback 0 02-10-2012 07:51 AM
cover image jjh76 Calibre 3 12-30-2011 06:29 AM
Cover Image Todd Young Writers' Corner 3 09-20-2011 05:16 PM
Cover Image Padr49904 Sigil 7 05-07-2011 06:59 PM


All times are GMT -4. The time now is 08:43 AM.


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