Uncompress and Compress an EPUB file

From Bonus Bits Wiki
Jump to: navigation, search

Contents

INTRODUCTION

This article shows a few ways to expand an EPUB (.epub) file to it's individual files and folders and the reverse.

SUMMARY

  • Unzip the epub file to a folder like any other zip file
  • Zip the epub files and folders in a special manner or use a utility


COMMANDS

  1. unzip
  2. zip


STEPS TO UNCOMPRESS

MAC OS X

asdf

Windows

  1. Change the file extension name from epub to zip
  2. Use a file compression utility such as 7-Zip to expand the file



STEPS TO COMPRESS

MAC OS X

SOLUTION A (CLI)
  1. zip -X0 "full path to new epub file" mimetype
  2. zip -rDX9 "full path to new epub file" * -x "*.DS_Store" -x mimetype
SOLUTION B (Script)

asdf

Windows

SOLUTION A (CLI)

asdf

SOLUTION B (Script)

asdf

SOURCES

http://www.mobileread.com/forums/showthread.php?t=55681