When you unzip the ePub, leave the directory META-INF and it's contents and the file minetype alone. That way you won't mess the structure of the ePub when you put the rest of the files back in. It's that easy.
If the cover code is not good or the cover XML is missing, I'll use code from Calibre's cover XML. I just have to look for it from a Calibre converted ePub. If I do have to create the cover XML, I'll then have to edit the OPF to add in the cover image and the cover XML and tell the OPF to use the cover XML as the first file opened.
Last edited by JSWolf; 08-10-2011 at 05:02 PM.
|