Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 11-27-2020, 04:37 AM   #1
Ashjuk
Fanatic
Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.
 
Ashjuk's Avatar
 
Posts: 500
Karma: 3498633
Join Date: May 2011
Location: Surrey, UK
Device: Kobo Aura One, Sony PRS 600/650
Cover image problems

I have a problem with the cover image displaying on some ebooks both in Sigil and on my Kobo.

I have a collection of books that have no cover image included so I have been downloading images from the Internet to add to them.

I have resized them all to 325 x 500 @ 72dpi. I created a cover page template file which I add to the books in question along with the corresponding image file.

My problem is that in some books the cover image appears perfectly in the preview pane and in some all I get is this -

And this is the cover page code -

Code:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  <meta name="calibre:cover" content="true"/>
  <title>Cover</title>
  <style type="text/css" title="override_css">
            @page {padding: 0pt; margin:0pt}
            body { text-align: center; padding:0pt; margin: 0pt; }
        </style>
</head>

<body>
  <div>
    <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="100%" height="100%" viewBox="0 0 460 706" preserveAspectRatio="none"><image width="460" height="706" xlink:href="cover.jpeg"/></svg>
  </div>
</body>
</html>
Any ideas where I am going wrong?
Attached Thumbnails
Click image for larger version

Name:	sigil002.jpg
Views:	325
Size:	33.4 KB
ID:	183614  

Last edited by theducks; 11-27-2020 at 05:11 PM. Reason: removed redundent inline image
Ashjuk is offline   Reply With Quote
Old 11-27-2020, 05:40 AM   #2
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,582
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Most likely your cover image isn't found, because you didn't include a path in the xlink:href value.

Code:
xlink:href="cover.jpeg"
However, unless you didn't create the book with Sigil, it should have the following path, if your book has an Images folder and you added the cover image to it:

Code:
xlink:href="../Images/cover.jpeg"
You might want to install the FlightCrew and EpubCheck plugins and check your book with it.

You also might want to right-click the cover image file in the Book Browser and make sure that there's a check mark before the Cover Image entry.
Doitsu is offline   Reply With Quote
Old 11-27-2020, 08:01 AM   #3
Ashjuk
Fanatic
Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.
 
Ashjuk's Avatar
 
Posts: 500
Karma: 3498633
Join Date: May 2011
Location: Surrey, UK
Device: Kobo Aura One, Sony PRS 600/650
Quote:
Originally Posted by Doitsu View Post
Most likely your cover image isn't found, because you didn't include a path in the xlink:href value.
I have now included the path and the image still does not display.

Quote:
Originally Posted by Doitsu View Post
You might want to install the FlightCrew and EpubCheck plugins and check your book with it.
Thanks, I will check them out.

Quote:
Originally Posted by Doitsu View Post
You also might want to right-click the cover image file in the Book Browser and make sure that there's a check mark before the Cover Image entry.
The image has a check mark against cover image, so not that.
Ashjuk is offline   Reply With Quote
Old 11-27-2020, 08:12 AM   #4
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,469
Karma: 5432724
Join Date: Nov 2009
Device: many
That happens for one of three reasons:

1. the image file can not be found

2. the image file was never added properly to the epub by Sigil so you have an href pointing outside the book itself.

3. the image file format does not match the ext/mimetype or is unreadable
KevinH is offline   Reply With Quote
Old 11-27-2020, 08:14 AM   #5
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,582
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Ashjuk View Post
I have now included the path and the image still does not display.
Then the book most likely doesn't contain an Images folder and/or cover.jpeg isn't in that folder.
Please post a screenshot of the Book Browser window that shows the location of cover.jpeg.
Doitsu is offline   Reply With Quote
Old 11-27-2020, 08:27 AM   #6
Ashjuk
Fanatic
Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.
 
Ashjuk's Avatar
 
Posts: 500
Karma: 3498633
Join Date: May 2011
Location: Surrey, UK
Device: Kobo Aura One, Sony PRS 600/650
Quote:
Originally Posted by Doitsu View Post
Then the book most likely doesn't contain an Images folder and/or cover.jpeg isn't in that folder.
Please post a screenshot of the Book Browser window that shows the location of cover.jpeg.
Book definitely has an Images folder and the file cover.jpg is there.

I have installed FlightCrew and ePubCheck. FlightCrew has no warnings regarding the cover image and ePubCheck failed to run for some reason.

Still baffled.
Attached Thumbnails
Click image for larger version

Name:	sigil003.jpg
Views:	171
Size:	69.3 KB
ID:	183618  

Last edited by theducks; 11-27-2020 at 05:12 PM. Reason: removes redunden inline image
Ashjuk is offline   Reply With Quote
Old 11-27-2020, 08:34 AM   #7
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,582
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
The name of your cover image is cover.jpg, however, the cover image xlink:href attribute references cover.jpeg.

It should work, if you change the path to:

Code:
xlink:href="../Images/cover.jpg"
If that still doesn't work, delete the cover HTML file and create a new one via Tools > Add cover...
Doitsu is offline   Reply With Quote
Old 11-27-2020, 08:41 AM   #8
Ashjuk
Fanatic
Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.
 
Ashjuk's Avatar
 
Posts: 500
Karma: 3498633
Join Date: May 2011
Location: Surrey, UK
Device: Kobo Aura One, Sony PRS 600/650
Quote:
Originally Posted by Doitsu View Post
The name of your cover image is cover.jpg, however, the cover image xlink:href attribute references cover.jpeg.

It should work, if you change the path to:

Code:
xlink:href="../Images/cover.jpg"
If that still doesn't work, delete the cover HTML file and create a new one via Tools > Add cover...
Thanks, I deleted the cover image and used the Add Cover as you suggested and it now displays correctly.

I had previously tried editing the path to include ../Images but that did not work so I changed it back again.

If I come across this problem again I now know what to do, thanks again for your help.
Ashjuk is offline   Reply With Quote
Old 11-27-2020, 09:07 AM   #9
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: 27,441
Karma: 192992430
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
For future reference: please note that the folders shown in the Book Browser are only a virtual representation of file-types contained in the epub archive (starting with Sigil 1.0). The fact that an 'Images' folder appears there does not, in fact, mean that there's an 'Images' folder present in the epub's archive. There could be one, but the fact that cover.jpg appears under the virtual 'Images' folder only means that Sigil knows that cover.jpg is an image.

The tooltip, when hovering over a file, shows the actual file path within an epub's archive. You can also set the full path of all files to always show in Book Browser in Sigil's preferences. Doing so can help to reinforce the idea that Book Browser is a representation of an epub's various file-types and is not necessarily indicative of its internal folder structure.
DiapDealer is offline   Reply With Quote
Old 11-27-2020, 09:43 AM   #10
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,469
Karma: 5432724
Join Date: Nov 2009
Device: many
Yes when hand creating any links, you must know the true path to the file that is the link starting point and the true path to the destination file (the link's ending point).

So either mousing over both to see their path or turning on full paths in Sigil Preferences will do that for you.

But why not let Sigil handle all of that by using the Add Cover, Insert Image, Insert Link, Insert Style tools to automate that process for you.
KevinH is offline   Reply With Quote
Old 11-27-2020, 11:57 AM   #11
Ashjuk
Fanatic
Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.
 
Ashjuk's Avatar
 
Posts: 500
Karma: 3498633
Join Date: May 2011
Location: Surrey, UK
Device: Kobo Aura One, Sony PRS 600/650
Quote:
Originally Posted by DiapDealer View Post
For future reference: please note that the folders shown in the Book Browser are only a virtual representation of file-types contained in the epub archive (starting with Sigil 1.0). The fact that an 'Images' folder appears there does not, in fact, mean that there's an 'Images' folder present in the epub's archive. There could be one, but the fact that cover.jpg appears under the virtual 'Images' folder only means that Sigil knows that cover.jpg is an image.

The tooltip, when hovering over a file, shows the actual file path within an epub's archive. You can also set the full path of all files to always show in Book Browser in Sigil's preferences. Doing so can help to reinforce the idea that Book Browser is a representation of an epub's various file-types and is not necessarily indicative of its internal folder structure.
Thanks for the information - I'm still learning my way with Sigil so things like this will stump me. What was confusing me was that it appeared to work fine with one book and not another and I couldn't work out why that should be so.

Quote:
Originally Posted by KevinH View Post
Yes when hand creating any links, you must know the true path to the file that is the link starting point and the true path to the destination file (the link's ending point).

So either mousing over both to see their path or turning on full paths in Sigil Preferences will do that for you.

But why not let Sigil handle all of that by using the Add Cover, Insert Image, Insert Link, Insert Style tools to automate that process for you.
Yes, in future I will just use the Add Cover option to create the cover page. I had not spotted that in the menu - still discovering things.

Thanks for everyone's help.
Ashjuk is offline   Reply With Quote
Old 11-27-2020, 01:48 PM   #12
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: 34,236
Karma: 144198474
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by Ashjuk View Post
Thanks for the information - I'm still learning my way with Sigil so things like this will stump me. What was confusing me was that it appeared to work fine with one book and not another and I couldn't work out why that should be so.
One item that might help is in the Preferences => Appearance => Main UI, select "BookBrowser should show full paths". This will show the full path which I find useful when opening an epub that I did not generate where you can find files stuffed into random directories or no directories.
Attached Thumbnails
Click image for larger version

Name:	prefs_full_path.png
Views:	127
Size:	19.8 KB
ID:	183624   Click image for larger version

Name:	BookBrowser_full_path.png
Views:	126
Size:	18.0 KB
ID:	183625  
DNSB is offline   Reply With Quote
Old 11-27-2020, 05:58 PM   #13
BetterRed
null operator
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,419
Karma: 25894272
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by DNSB View Post
One item that might help is in the Preferences => Appearance => Main UI, select "BookBrowser should show full paths". This will show the full path which I find useful when opening an epub that I did not generate where you can find files stuffed into random directories or no directories.


Be good to have a keyboard shortcut to toggle that setting.

BR
BetterRed is online now   Reply With Quote
Old 11-27-2020, 07:05 PM   #14
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,469
Karma: 5432724
Join Date: Nov 2009
Device: many
It is not something that needs to be toggled often or all all. It is more a personal preference since all information is easily available in either mode and the Sigil tools already exist to prevent the need to hand edit links at all, which can be error prone.
KevinH is offline   Reply With Quote
Old 11-28-2020, 03:45 AM   #15
Ashjuk
Fanatic
Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.
 
Ashjuk's Avatar
 
Posts: 500
Karma: 3498633
Join Date: May 2011
Location: Surrey, UK
Device: Kobo Aura One, Sony PRS 600/650
Quote:
Originally Posted by DNSB View Post
One item that might help is in the Preferences => Appearance => Main UI, select "BookBrowser should show full paths". This will show the full path which I find useful when opening an epub that I did not generate where you can find files stuffed into random directories or no directories.
Thanks. I have done now done that following Kevin's advice earlier.
Ashjuk is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
full page image problems with iBooks/cover problems in iTunes iain robinson ePub 1 06-28-2013 11:10 AM
Cover image isn't displaying as cover image Eugene88 Sigil 3 08-15-2012 04:05 PM
Cover image problems. WraithTDK Library Management 2 02-24-2012 09:54 AM
Weird cover image problems just_jeepin Sigil 3 11-11-2009 05:32 PM


All times are GMT -4. The time now is 05:23 AM.


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