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

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 05-17-2011, 09:06 PM   #1
DHahn
Junior Member
DHahn began at the beginning.
 
Posts: 9
Karma: 10
Join Date: May 2011
Device: iPad
Cover Breaks Publication in iBooks (Yes: yet another iBook cover thread)

Hello everyone!

I've recently hand-coded my very first ePub; it's a fixed-layout picture book for the iPad.

Everything looks spot-on fantastic in iBooks — however, believing it would be the simplest part of my code, I left the cover for last. I do believe I've followed protocol by creating an xhtml cover document, properly sized cover image, referenced both in the OPF file and included it in the spine (I've tried both with and without 'linear="no"/'). I've even tried other cover images and re-coding the cover page.

Few hours later, and I'm still baffled: the ePub validates, and from what I can garner there's absolutely nothing wrong with my OPF manifest, toc, or xhtml.

I'm wondering if someone here has had experience with something similar, or at least a suggestion!

Here is a screenshot of what my busted iBook looks like:



The cover image itself is 782 × 997 pixels (slightly less than the suggested max scale suggested at Threepress).

As a fixed layout, the viewport is set to 1200 x 1700 on all other pages.

Changing the cover image size didn't solve this problem.

Any help would be greatly appreciated. I've looked elsewhere in these forums and on the web, and I can't find anyone who's had similar problems with a fixed layout ePub.

Attached are my cover, opf, and ncx files. Couple are plain text, because you can't upload some file types it seems.

Thanks!
Attached Files
File Type: opf content.opf (6.4 KB, 88 views)
File Type: txt tocNCX.txt (1.7 KB, 59 views)
File Type: rtf a_cover.rtf (875 Bytes, 103 views)
DHahn is offline   Reply With Quote
Old 05-18-2011, 01:47 AM   #2
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 2,956
Karma: 3363559
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
and where is your cover xhtml file?
Toxaris is offline   Reply With Quote
 
Enthusiast
Old 05-18-2011, 02:04 AM   #3
DHahn
Junior Member
DHahn began at the beginning.
 
Posts: 9
Karma: 10
Join Date: May 2011
Device: iPad
Toxaris,

In the process of trying to fix this issue I re-coded my cover.xhtml file and gave it a different name... started from completely scratch with it as a last ditch effort.

The cover is attached above as a_cover.rtf (silly, I know, but it seems we can't attach xhtml files in this forum). It is also declared as such in the manifest.
DHahn is offline   Reply With Quote
Old 05-18-2011, 11:05 AM   #4
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 9,615
Karma: 5071748
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2
Quote:
Originally Posted by DHahn View Post
Toxaris,

In the process of trying to fix this issue I re-coded my cover.xhtml file and gave it a different name... started from completely scratch with it as a last ditch effort.

The cover is attached above as a_cover.rtf (silly, I know, but it seems we can't attach xhtml files in this forum). It is also declared as such in the manifest.
A cover must be an image. rtf is not an image format.

Dale
DaleDe is offline   Reply With Quote
Old 05-18-2011, 11:51 AM   #5
DHahn
Junior Member
DHahn began at the beginning.
 
Posts: 9
Karma: 10
Join Date: May 2011
Device: iPad
DaleDe,

My client will not allow me to put their cover artwork up on a forum — though I noted the dimensions of the png image that we are using for the cover image.

I also can't upload my cover.xhtml file to this forum: files ending in .xhtml are not allowed, it seems.

The image is 782 × 997 pixels.

And here is the code itself for a_cover.xhtml:

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="application/xhtml+xml; charset=utf-8" /> 
    <meta name="cover" content="cover-image"/>    
    <title>My title</title>
    <link rel="stylesheet" href="style.css" type="text/css" />
</head>
<body>
<div>
    <img id="a_coverimg" src="images/a_cover.png" alt="My Cover" style="max-width: 100%;" />
</div>
</body>
</html>
I hope this clears up some of the confusion I am seeing regarding my cover.xhtml file and the cover image.

Again: I am not allowed to upload this client's artwork to forums on the web.

Best I can do is noting the image size and file name so that you guys can see where it's declared in my manifest, and maybe point out an issue from there.

Last edited by DHahn; 05-18-2011 at 11:57 AM.
DHahn is offline   Reply With Quote
Old 05-18-2011, 01:39 PM   #6
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 2,956
Karma: 3363559
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
Could you upload (part) of the epub with another image (same name, other image please!)? That would enable us to check the (cross-)references and structure.
Toxaris is offline   Reply With Quote
Old 05-18-2011, 02:08 PM   #7
DHahn
Junior Member
DHahn began at the beginning.
 
Posts: 9
Karma: 10
Join Date: May 2011
Device: iPad
Toxaris,

I've fixed this — thanks so much for your willingness to help, though.

There were two problems.

First — and I think most importantly — the eBook broke because I wasn't calling my viewport size in the cover.xhtml file
Code:
<meta name="viewport" content="width=1200, height=1700"></meta>
.

I think that forgetting to do this on each and every page of a fixed layout iBook totally breaks the entire publication.

Secondly, it looks like
Code:
linear="no"
is required for the cover item in the spine.

Of note: my cover image is now 1200x1700px, and it seems to work just dandy even though I've read that it should be less than 1000 pixels wide and high.

I thought that this would be a tough one to solve, but it was pretty basic! Contrary to what my art director thinks, turning off your computer and sleeping on a problem is much more efficient than getting frustrated and staring at code for ten hours straight

Thanks again!

Doug

Last edited by DHahn; 05-18-2011 at 02:11 PM.
DHahn 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
mobi convert to ePub, cover OK in iBooks, not Stanza 1611mac Conversion 5 03-10-2011 12:04 PM
Cover in iBooks holdrio Apple 19 02-25-2011 11:28 AM
Getting cover art to show in iBooks macdafydd ePub 5 11-30-2010 05:57 PM
Cover in iBooks (epub) holdrio ePub 15 11-03-2010 11:09 AM
iBooks, Table of Contents, Missing Cover image. Daddy Warpig Apple Devices 2 04-15-2010 10:09 AM


All times are GMT -4. The time now is 01:46 PM.


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