Cover for iBook Stanza

Recommend this page to a friend!

      EPub  >  All threads  >  Cover for iBook Stanza  >  (Un) Subscribe thread alerts  
Subject:Cover for iBook Stanza
Summary:Changes to show cover in iBook/Stanza
Messages:2
Author:Max
Date:2011-03-05 09:58:40
Update:2011-03-05 10:10:46
 

  1. Cover for iBook Stanza   Reply   Report abuse  
Max - 2011-03-05 09:58:40
Hello,
I am working on converter FB2TOEPUB.

As I discover iBook and Stanza do not show Cover page.
My changes to fix this:

function finalize()

if ($this->isCoverImageSet){
$this->opf .="\n<meta name=\"cover\" content=\"coverImage\" xmlns=\"\" />\n";
}

coverImage - is ID of cover image.


BTW
Information about subject missed in class, my changes:

private $subject = "";

function __destruct() {
$this->zip = null;
$this->title = "";
$this->author = "";
$this->publisher = "";
$this->publishDate = 0;
$this->bookId = "";
$this->opf_manifest = "";
$this->opf_spine = "";
$this->ncx_navmap = "";
$this->chapterCount = 0;
$this->subject = "";
$this->imgPath = "cover.jpg";
}

function setSubject($subject) {
if ($this->isFinalized) {
return;
}
$this->subject = $subject;
}

function finalize()

if (!empty($this->subject)) {
$this->opf .= "\t\t<dc:subject>" . $this->subject . "</dc:subject>\n";
}


Thank You for Great job!!!

  2. Re: Cover for iBook Stanza   Reply   Report abuse  
Asbjorn Grandt - 2011-03-05 10:10:46 - In reply to message 1 from Max
Thanks, I missed the cover image meta tag, and thanks for the Subject suggestion, it'll be in the next update :)

 

For more information send a message to info at phpclasses dot org.