![]() |
#1 |
Junior Member
![]() 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:
Thank you. |
![]() |
![]() |
![]() |
#2 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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"/> 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. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#4 | |||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
That will automatically add a cover file + do all the EPUB metadata stuff needed. Quote:
If you needed that, then after the steps above:
That will still:
That's the quickest/easiest way to do what you want to accomplish. Quote:
That's why Sigil has the easy-to-use menus to accomplish whatever is needed:
|
|||
![]() |
![]() |
![]() |
#5 |
Junior Member
![]() 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. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#7 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
Last edited by JSWolf; 03-06-2023 at 01:49 PM. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
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 |