![]() |
#1 |
Junior Member
![]() 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 |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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?
|
![]() |
![]() |
![]() |
#3 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,341
Karma: 203719646
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. |
![]() |
![]() |
![]() |
#4 |
Member
![]() 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) |
![]() |
![]() |
![]() |
#5 | |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Feb 2013
Location: Los Angeles
Device: ipad
|
images are declared
Quote:
<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 |
|
![]() |
![]() |
![]() |
#6 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Feb 2013
Location: Los Angeles
Device: ipad
|
|
![]() |
![]() |
![]() |
#7 | |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Feb 2013
Location: Los Angeles
Device: ipad
|
Quote:
![]() tt |
|
![]() |
![]() |
![]() |
#8 | |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Feb 2013
Location: Los Angeles
Device: ipad
|
Quote:
tt |
|
![]() |
![]() |
![]() |
#9 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78,964
Karma: 144284074
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. |
![]() |
![]() |
![]() |
Tags |
epub, epub check, fixed layout, opf file |
|
![]() |
||||
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 |