Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 03-04-2023, 01:06 PM   #1
TheHendrik
Junior Member
TheHendrik began at the beginning.
 
TheHendrik's Avatar
 
Posts: 8
Karma: 10
Join Date: Jan 2023
Location: Brazil
Device: Kindle Paperwhite 11th generation
Can't make image into cover

Hello. I am trying to learn how to make ebooks in Sigil. I'm having trouble defining a image as cover to my ebook. I know you can have a cover without creating a .xhtml file, just using the manifest file.
From what I understand, after adding the image to the ebook, I should add some information to the metadata and manifest sections of the .opf file, which should end like this:
Code:
<metadata>
<meta content="cover_id" name="cover" />
</metadata>
<manifest>
<item id="cover_id" href="images/cover.jpg" media-type="image/jpeg" properties="cover-image" role="doc-cover"/>
</manifest>
I tried changing and rewriting a bunch of times, but neither Calibre, Moon reader or my kindle recognize a cover. What I'm doing wrong? I'm using Epub3.
Thank you.
TheHendrik is offline   Reply With Quote
Old 03-04-2023, 01:18 PM   #2
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 44,574
Karma: 168431235
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
I have the following in one epub3 and it seems to work with epub3 aware applications:

Code:
<item id="cover_id" href="Images/cover.jpeg" media-type="image/jpeg" properties="cover-image"/>
Note that this is an epub3 only construct and Moonreader as an example does not handle epub3. As for your Kindle? Amazon has been changing how covers are handled on a regular basis. See the number of complaints about Send to Kindle (email, web page, whatever) having issues with covers doing now you see me, now you don't.

Edit: Also you can't use role="doc-cover" in an .opf file. Epubcheck will flag it as an error.

Last edited by DNSB; 03-04-2023 at 01:21 PM.
DNSB is offline   Reply With Quote
Advert
Old 03-04-2023, 01:27 PM   #3
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,341
Karma: 203719646
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
You only have to manually set the cover semantic in the opf if you want to. Otherwise, you simply right click on the image in Book Browser and set the proper cover semantic. That will automatically create the metadata and manifest entries in the opf.

I've no idea which apps or readers actually honor the cover semantic, however.

Last edited by DiapDealer; 03-04-2023 at 01:31 PM.
DiapDealer is offline   Reply With Quote
Old 03-04-2023, 07:16 PM   #4
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by TheHendrik View Post
Hello. I am trying to learn how to make ebooks in Sigil. I'm having trouble defining a image as cover to my ebook.
All you have to do is:
  • Tools > Add Cover
  • Select your image.
  • Press OK.

That will automatically add a cover file + do all the EPUB metadata stuff needed.

Quote:
Originally Posted by TheHendrik View Post
I know you can have a cover without creating a .xhtml file, just using the manifest file.
Why are you trying to add a cover without the XHTML file?

If you needed that, then after the steps above:
  • Right-Click > Delete on the cover.xhtml file.

That will still:
  • leave the proper "cover" metadata on your image
  • but remove the XHTML cover file from your book

That's the quickest/easiest way to do what you want to accomplish.

Quote:
Originally Posted by TheHendrik View Post
I tried changing and rewriting a bunch of times, but neither Calibre, Moon reader or my kindle recognize a cover. What I'm doing wrong? I'm using Epub3.
I wouldn't manually mess around in the content.opf unless you know exactly what you're doing. That's advanced stuff, very easy to mess up... and your typical user will NEVER have to manually go in there to tweak anything.

That's why Sigil has the easy-to-use menus to accomplish whatever is needed:
  • Tools > Add Cover for covers.
  • Tools > Table of Contents > Generate Table of Contents for TOCs.
  • Tools > Metadata Editor for messing with Title/Author/Publisher stuff.
  • And various Right-Clicking on files to add Cover/Table of Contents metadata.
Tex2002ans is offline   Reply With Quote
Old 03-06-2023, 06:36 AM   #5
TheHendrik
Junior Member
TheHendrik began at the beginning.
 
TheHendrik's Avatar
 
Posts: 8
Karma: 10
Join Date: Jan 2023
Location: Brazil
Device: Kindle Paperwhite 11th generation
Thanks for the replies. I know I shouldn't me messing around in the content until I know more about ebooks, but I wanted to know why it was working in some ebooks and not others. It turned out to be the fact that some were epub 2 and other epub 3. I changed the ones with version 3 to version 2 and know the cover is recognized in all devices.
I didn't want to create a cover using a .xhtml file because it usually gets the bottom part cut when I try to read in some devices.
TheHendrik is offline   Reply With Quote
Advert
Old 03-06-2023, 01:42 PM   #6
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,295
Karma: 20171067
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
The bottom part being cut is purely the device/app assigning improper real estate (screen space)…. The device is trying to reserve space for headers and/or footers, or some such.

You can try getting around that by using a svg wrapper and assigning the height to something smaller than 100%… try 95vh or something.
Turtle91 is offline   Reply With Quote
Old 03-06-2023, 01:47 PM   #7
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 78,986
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by TheHendrik View Post
Hello. I am trying to learn how to make ebooks in Sigil. I'm having trouble defining a image as cover to my ebook. I know you can have a cover without creating a .xhtml file, just using the manifest file.
From what I understand, after adding the image to the ebook, I should add some information to the metadata and manifest sections of the .opf file, which should end like this:
Code:
<metadata>
<meta content="cover_id" name="cover" />
</metadata>
<manifest>
<item id="cover_id" href="images/cover.jpg" media-type="image/jpeg" properties="cover-image" role="doc-cover"/>
</manifest>
I tried changing and rewriting a bunch of times, but neither Calibre, Moon reader or my kindle recognize a cover. What I'm doing wrong? I'm using Epub3.
Thank you.
What's with all the[indent]? It seems to make the code block not display properly. I suggest you delete all of those indents in any code blocks you've used them.

Last edited by JSWolf; 03-06-2023 at 01:49 PM.
JSWolf is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I get metadata from cover image? The image is correct but all other data is wrong mydjtl Library Management 1 12-14-2017 05:15 PM
paste cover image changes image's size pipistrelosone Editor 1 10-07-2016 09:10 AM
HOWTO make a Kobo sleep cover from a regular cover for about $2 rwhe Kobo Reader 35 10-19-2014 04:07 PM
Smashwords error report:Please make your cover image the very first page of your EPUB slicknick001 ePub 2 01-12-2014 05:03 PM
Cover image isn't displaying as cover image Eugene88 Sigil 3 08-15-2012 04:05 PM


All times are GMT -4. The time now is 07:29 PM.


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