Raqefet A. Yedidia - 2013-02-23 13:11:38 - In reply to message 3 from Asbjorn Grandt
Thank for rapid response.
Unfortunately, the script now is working, but it is making a mistake and attach the
to the jpg files in manifest.
This cause a validation arror in idpf epub validator. validator.idpf.org/
Asbjorn Grandt - 2013-02-23 15:32:50 - In reply to message 4 from Raqefet A. Yedidia
I just ran some tests and haven't been able to recreate the problem. I'd like some information on what you are doing, a little code example you use that creates the problem.
As you get the mime type as an octet stream, there is a bug, and I'd love to squash that.
Asbjorn Grandt - 2013-02-23 15:34:40 - In reply to message 6 from Asbjorn Grandt
And while I remember it. Can I get you to tell me what these 5 variables contain after EPub have been initialized:
Raqefet A. Yedidia - 2013-02-23 18:45:45 - In reply to message 7 from Asbjorn Grandt
according to output I've created (extend rights notice...):
i got those error from validator:
ERROR CoverPage.html 18 80 non-standard image resource 'images/Nerves800-567.jpg' of type 'application/octet-stream'
ERROR Chapter001.html 13 164 non-standard image resource 'images/http/www.grandt.com/ePub/ePubAnotherHappilyMarriedCouple.jpg' of type 'application/octet-stream'
ERROR Chapter002.html 12 67 'demo/DemoInlineImage.jpg': referenced resource missing in the package.
ERROR Chapter007.html 13 69 'demo/DemoInlineImage.jpg': referenced resource missing in the package.
i used your original files, only use
//$book->setCoverImage("Cover.jpg", file_get_contents("demo/cover-image.jpg"), "image/jpeg");
Asbjorn Grandt - 2013-02-23 19:01:50 - In reply to message 8 from Raqefet A. Yedidia
The missing references are images referenced in the HTML that aren't included in the build, or where there is a filename discrepancy, or the image wasn't found. That is probably one of the things I need to do, remove images that couldn't be located by the script.
I'm at a loss as to why both the Nerves800-567.jpg and PubAnotherHappilyMarriedCouple.jpg are not correctly detected as image/jpeg. They are included in the archive and valid images after import? (It could be a bug loading the files, resulting in invalid images.)
Can I get you to send me that ePub to email@example.com ?