Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 12-04-2011, 02:02 PM   #1
meadowlarkOR
Junior Member
meadowlarkOR began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Dec 2011
Device: nook
How to rezip an epub file?

Hello all,

I'm new to the forum, just starting to learn to create epub files. I'm on a PC. I've been able to get at the files inside the epub. I changed the .epub extension to .zip and then right-clicked and chose Extract All. Everything was there and editable.

However, when I reverse the process, my epub file won't open and I get an error message that's way above my pay grade. I chose the folder all the files were in and gave it a .zip extension. Then I changed that extension to .epub. No dice!

Can anyone tell me what I'm doing wrong (or another resource I might try?)?

Thanks!
meadowlarkOR is offline   Reply With Quote
Old 12-04-2011, 02:07 PM   #2
mtrahan
Colonel Mustard
mtrahan is no ebook tyro.mtrahan is no ebook tyro.mtrahan is no ebook tyro.mtrahan is no ebook tyro.mtrahan is no ebook tyro.mtrahan is no ebook tyro.mtrahan is no ebook tyro.mtrahan is no ebook tyro.mtrahan is no ebook tyro.mtrahan is no ebook tyro.
 
mtrahan's Avatar
 
Posts: 90
Karma: 1426
Join Date: Feb 2010
Location: Montreal
Device: iPhone 6, Kindle Paperwhite 2, iPad 2
You need to zip the files in a specific way. Give ePubPack a try — very simple, and does exactly what you need.

http://sourceforge.net/projects/epubpack/

Btw, to do it by hand, here's what you need to do:
  • Create an empty .zip file with whatever name you like (See notes below for detailed instructions on how to do this.)
  • Copy the mimetype file into the zip file (don't use compression on this file)
  • Copy the rest of the files and folders mentioned above into the zip file *
  • Re-name the .zip extension to .epub

* The specification recommends that the books files go in an "OEBPS" folder inside the zip file. If you put them in another spot, be sure that container.xml in the META-INF folder points to the correct location of the *.opf file.

Info from: http://www.jedisaber.com/eBooks/Tutorial03.shtml

Last edited by mtrahan; 12-04-2011 at 02:10 PM. Reason: More details
mtrahan is offline   Reply With Quote
Old 12-04-2011, 04:10 PM   #3
wallcraft
reader
wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.
 
wallcraft's Avatar
 
Posts: 6,975
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
Another way to do this is to import the epub into Calibre and use its "Tweak ePub" option. Right click on a title with an ePub and select "Tweak ePub" then "explode epub", edit any contained files and then "rebuild".
wallcraft is offline   Reply With Quote
Old 12-04-2011, 07:47 PM   #4
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: 45,353
Karma: 32532934
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, Sony PRS-650, Sony PRS-T1, nook STR, iPad 4, iPhone 5
When you extract the files from the ePub,m do not extract META-INF and metadata. Leave those alone. Then when you put back the rest of the files, the ePub will be compressed correctly (if it was correct before you extracted any of the contents).
JSWolf is offline   Reply With Quote
Old 12-05-2011, 11:37 AM   #5
dwig
Wizard
dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.
 
dwig's Avatar
 
Posts: 1,231
Karma: 2230000
Join Date: Dec 2004
Location: Paradise (Key West, FL)
Device: Current:Dell Venue 8 Pro - Retired:Kindle 3, Clie UX50, T415, ...
Quote:
Originally Posted by meadowlarkOR View Post
...I'm on a PC. I've been able to get at the files inside the epub. I changed the .epub extension to .zip and then right-clicked and chose Extract All. Everything was there and editable....
I avoid re-zipping the ePub. I simply view the files in the ZIP version and manually drag out copies of the file(s) that needs editing. I make my fixes and then drag the fixed version back into the ZIP archive replacing the original.
dwig is offline   Reply With Quote
Old 12-06-2011, 10:49 AM   #6
ghostyjack
Guru
ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.
 
ghostyjack's Avatar
 
Posts: 718
Karma: 1085610
Join Date: Mar 2009
Location: Bristol, England
Device: PRS-T1, 1825PT, Galaxy Tab, One X, TF700T, Aura HD, Nexus 7
Quote:
Originally Posted by dwig View Post
I avoid re-zipping the ePub. I simply view the files in the ZIP version and manually drag out copies of the file(s) that needs editing. I make my fixes and then drag the fixed version back into the ZIP archive replacing the original.
That's the approach I use.

Using the "open with" option using winzip, dragging the file out and then back in after modification works a treat. Not had a problem with this from the hundreds I've modified.

Only need to do this though until Sigil retains the original epub structure, and then you can open it in Sigil instead.
ghostyjack is offline   Reply With Quote
Old 12-06-2011, 11:35 AM   #7
dwig
Wizard
dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.
 
dwig's Avatar
 
Posts: 1,231
Karma: 2230000
Join Date: Dec 2004
Location: Paradise (Key West, FL)
Device: Current:Dell Venue 8 Pro - Retired:Kindle 3, Clie UX50, T415, ...
Quote:
Originally Posted by ghostyjack View Post
...

Only need to do this though until Sigil retains the original epub structure, and then you can open it in Sigil instead...
There will still be need of this type of manipulation unless Sigil gets real sophisticated and adds the ability to have bitmaps be opened in an external app for editing. I find that adjusting images in Photoshop to be my most common use for this.
dwig is offline   Reply With Quote
Old 12-06-2011, 12:55 PM   #8
st_albert
Guru
st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.
 
Posts: 607
Karma: 94420
Join Date: Feb 2010
Device: none
Since you're on Windows, the makers of the Atlantis Word Processor have published a free stand-alone program called "tweak_epub.exe" which will let you open, edit, and repack the epub. (I don't remember where to find it, but Google is your friend.)
st_albert is offline   Reply With Quote
Old 12-07-2011, 09:29 AM   #9
victorhugoa
Junior Member
victorhugoa began at the beginning.
 
victorhugoa's Avatar
 
Posts: 7
Karma: 10
Join Date: Dec 2011
Device: Nook
Oxygen allows you to work inside any epub file without decompressing changing names or anything like that. Simple and direct tool that opens the files inside, keeps the structure and there is no necessity to compress again.
victorhugoa is offline   Reply With Quote
Old 01-13-2012, 03:02 PM   #10
73ChargerFan
Junior Member
73ChargerFan began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jan 2012
Device: Kindle3
Calibre works just fine with unzipped/rezipped epub files using 7zip.

I'll try the other tools mentioned in this thread also.
73ChargerFan is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
EPUB File Size yuxi_kelly ePub 9 07-27-2012 10:34 AM
Opus Updating EPUB file won't change publisher data on file listing spaze Bookeen 1 03-08-2011 02:34 AM
ePub file size Adjust ePub 16 10-27-2010 12:55 PM
How can i convert HTML or txt file to EPUB file ? guguqiaqia ePub 7 05-28-2010 10:15 PM
Epub file sizes jerryleejr Sony Reader 6 07-28-2008 04:09 PM


All times are GMT -4. The time now is 02:48 AM.


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