Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 02-11-2013, 04:54 AM   #1
oblivicat
Junior Member
oblivicat began at the beginning.
 
oblivicat's Avatar
 
Posts: 5
Karma: 10
Join Date: Feb 2013
Location: Los Angeles
Device: ipad
OPF file doesn't like "._"

Hello there,

This is my first post in this forum (probably the first of many). I am the ebook manager for a publishing Press called Ink Pen Mutations. I'm learning how to make ebooks,market them, etc. Not knowing much about this stuff I've been taking Lynda tutorials. The first ebook I'm making is fixed layout style from scratch.

I'm having a maddening problem trying to validate my epub. I'm getting this on all images:

WARNING: test.epub: item (__MACOSX/OEBPS/images/._12_homeless.jpg) exists in the zip file, but is not declared in the OPF file

There is a image file called "12_homeless.jpg". So, something seems to be putting "._" in front of all the images. I'm on Mac so I guess that could be the reason. But, I have no clue how to get rid of the messages. Any help would be appreciated!

tt
oblivicat is offline   Reply With Quote
Old 02-11-2013, 06:39 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: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
How do you create the OPF? Are you sure that the images are declared in the OPF?
Toxaris is offline   Reply With Quote
Old 02-11-2013, 07:55 AM   #3
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,547
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
That looks like the hidden "__MACOSX" folder that OSX includes when performing the normal "Archive as" function. That hidden resource folder can't exist in a valid ePub (and still pass validation, anyway). This is one time where doing it "from scratch" is biting you in the ass. Don't create an "archive," create a zip file with the "zip" command—if you insist on doing it from scratch. But I recommend using pdurrant's tool for easily zipping/unzipping epubs properly on OSX, instead. There are special considerations when creating an ePub package (the mimetype file must be first and uncompressed).

Your validator is complaining that the files (that start with "._") in the hidden __MAXOSX folder are NOT declared in the opf. And they shouldn't be; because the hidden __MACOSX folder shouldn't be in the ePub package in the first place.

Last edited by DiapDealer; 02-11-2013 at 10:25 AM.
DiapDealer is online now   Reply With Quote
Old 02-11-2013, 12:03 PM   #4
xrm0
Member
xrm0 began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Jan 2013
Location: Argentina
Device: Kindle
You can also use explodeImplodeEpub to rebuild the epub. You just drop the epub over the application and press rebuild. The new epub is rebuilt without the files on __MACOSX
Here are the details: https://www.mobileread.com/forums/sho...d.php?t=203822

(disclaimer: I wrote the application)
xrm0 is offline   Reply With Quote
Old 02-11-2013, 12:15 PM   #5
oblivicat
Junior Member
oblivicat began at the beginning.
 
oblivicat's Avatar
 
Posts: 5
Karma: 10
Join Date: Feb 2013
Location: Los Angeles
Device: ipad
images are declared

Quote:
Originally Posted by Toxaris View Post
How do you create the OPF? Are you sure that the images are declared in the OPF?
I used, and overwrote a sample OPF that Lynda.com supplied. All the images are declared:

<item id="pg11-img" href="images/10_homeless.jpg" media-type="image/jpeg" />
<item id="pg12-img" href="images/11_homeless.jpg" media-type="image/jpeg" />
<item id="pg13-img" href="images/12_homeless.jpg" media-type="image/jpeg" />
<item id="pg14-img" href="images/13_homeless.jpg" media-type="image/jpeg" />

The epub itself works perfectly btw.

Thanks!

tt
oblivicat is offline   Reply With Quote
Old 02-11-2013, 12:21 PM   #6
oblivicat
Junior Member
oblivicat began at the beginning.
 
oblivicat's Avatar
 
Posts: 5
Karma: 10
Join Date: Feb 2013
Location: Los Angeles
Device: ipad
Quote:
Originally Posted by DiapDealer View Post
This is one time where doing it "from scratch" is biting you in the ass.
Yo DD, this is fantastic! Once I get home from work today I'll try this out and report back.



tt
oblivicat is offline   Reply With Quote
Old 02-11-2013, 12:24 PM   #7
oblivicat
Junior Member
oblivicat began at the beginning.
 
oblivicat's Avatar
 
Posts: 5
Karma: 10
Join Date: Feb 2013
Location: Los Angeles
Device: ipad
Quote:
Originally Posted by xrm0 View Post
You can also use explodeImplodeEpub to rebuild the epub. You just drop the epub over the application and press rebuild. The new epub is rebuilt without the files on __MACOSX
Here are the details: https://www.mobileread.com/forums/sho...d.php?t=203822

(disclaimer: I wrote the application)
Hey, thanks for the info! Now I've got some ammo to fight the "._"! I'll try this tonight hopefully and report back.



tt
oblivicat is offline   Reply With Quote
Old 02-12-2013, 11:24 AM   #8
oblivicat
Junior Member
oblivicat began at the beginning.
 
oblivicat's Avatar
 
Posts: 5
Karma: 10
Join Date: Feb 2013
Location: Los Angeles
Device: ipad
Quote:
Originally Posted by xrm0 View Post
You can also use explodeImplodeEpub to rebuild the epub. You just drop the epub over the application and press rebuild. The new epub is rebuilt without the files on __MACOSX
Here are the details: https://www.mobileread.com/forums/sho...d.php?t=203822

(disclaimer: I wrote the application)
Wow! It really is mind-blowing when something actually works. explodeImplodeEpub works like a charm! It got rid of all the extra junk Mac put in. And so easy to use. Thanks so much!!!

tt
oblivicat is offline   Reply With Quote
Old 02-12-2013, 11:41 AM   #9
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,897
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Use Calibre with the Modify ePub plugin. Then you can easily get rid of the OS X artifacts.

After that is done, right click the ePub and open file location, copy the ePub and there's your artifact free ePub.
JSWolf is offline   Reply With Quote
Reply

Tags
epub, epub check, fixed layout, opf file


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fixed Layout Sample ".mobi" file with package(html, css, opf, ncx files). Sushil Kindle Fire 1 01-13-2012 07:16 AM
Custom column: "Updated date", when adding new "versions" of the same file? enriquep Library Management 16 11-03-2011 10:46 AM
Is "dc:rights" a valid entry in an OPF file for Kindlegen? Stodder Kindle Formats 5 06-06-2011 06:52 PM
Help! the "Make Sony Reader File" under "Options" is different Dr. Drib Sony Reader 6 04-23-2007 02:56 AM


All times are GMT -4. The time now is 10:09 PM.


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