|
|
#1 |
|
Sony-rific
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 808
Karma: 4886
Join Date: Jan 2008
Location: 2' From My MacBook Pro
Device: PRS-950, PRS 300, PRS 350
|
Epub file sizes
JJ
__________________
Only 2 defining forces have ever offered to die for you....Jesus Christ and the American Soldier. One died for your soul, the other for your freedom. Lt. Col. Grant L. Rosensteel, Jr. |
|
|
|
|
|
#2 |
|
Reticulator of Tharn
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 622
Karma: 400000
Join Date: Jan 2007
Location: EST
Device: Sony PRS-505
|
I did notice that Epub seems to be a touch smaller than LIT; I haven't compared it to Mobipocket, but it may well be. Most pre-Epub formats have all kinds of optimizations to decrease CPU and RAM usage in an e-book rendering application, like using lightweight compression and separately compressing fairly small file chunks (to facilitate seeking without needing to de-compress the entire file). Epub instead uses the fairly good DEFLATE algorithm across entire files, which is as good as you can get without requiring that a renderer decompress everything in the book in order to render anything.
|
|
|
|
|
Enthusiast
|
|
|
|
#3 |
|
Creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,488
Karma: 2944574
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Its completely a block size thing. In LRF for example every chapter is separately compressed. If you follow adobes guidelines and put every chapter into a separate file then I suspect you wont see any significant size differences between LRF and epub.
MOBI on the other hand compresses the entire text sream, but it supports 3 levels of compression 0 - no compression 1 - palmdoc (a lightweight compression scheme) 2 - huffman coding (this should actually outperform DEFLATE for pure text) |
|
|
|
|
|
#4 |
|
Retired & reading more!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,700
Karma: 871861
Join Date: Sep 2006
Location: North Alabama, USA
Device: EZ Reader, Kindle 1, NookColor, iPad 4, iPhone 5
|
As kovid indicates, some compression is more effective the more that gets compressed. While other compression schemes can actually enlarge some files, e.g. RLE compression.
__________________
"People generally see what they look for and hear what they listen for"
- Harper Lee |
|
|
|
|
|
#5 |
|
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 54,661
Karma: 26165759
Join Date: Nov 2006
Location: UK
Device: Kindle Touch, PW, Fire HD, iPad 3, iPhone 4, Samsung Tab 2 7 + More
|
High compression on Mobi files takes forever even on a fast machine. Personally I never use it. Mobi advise its use only for extremely large books, like dictionaries.
__________________
Harry Currently proofreading The Poison Belt, by Sir Arthur Conan Doyle. |
|
|
|
|
|
#6 |
|
Retired & reading more!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,700
Karma: 871861
Join Date: Sep 2006
Location: North Alabama, USA
Device: EZ Reader, Kindle 1, NookColor, iPad 4, iPhone 5
|
Now that I know that Epub files can be "unzip", I would imagine that the Epub files use a variant of the LZW compression. With it, typically large files compress more than smaller files due to the nature of the compression methodology. Therefore if the individual chapters are compressed individually, there will be (normally) less compression than if the entire book is compressed as a unit.
__________________
"People generally see what they look for and hear what they listen for"
- Harper Lee |
|
|
|
|
|
#7 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,443
Karma: 52235
Join Date: Sep 2006
Location: Belgium
Device: PRS-500/505/700, Kindle, Cybook Gen3, Words Gear
|
EPUB uses standard Flate compression of the ZIP container.
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| varying epub sizes | jjansen | ePub | 3 | 09-03-2010 05:10 PM |
| How can i convert HTML or txt file to EPUB file ? | guguqiaqia | ePub | 7 | 05-28-2010 09:15 PM |
| Splitting large file sizes ... | Hangman | Calibre | 1 | 04-05-2010 10:01 PM |
| eBook File Sizes Compared | Colin Dunstan | Workshop | 2 | 09-15-2003 11:08 AM |