Thread: Wikipedia?
View Single Post
Old 03-05-2011, 08:27 AM   #7
nrapallo
GuteBook/Mobi2IMP Creator
nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.
 
nrapallo's Avatar
 
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
Quote:
Originally Posted by nrapallo View Post
Try reducing your images to 4 bit .png (optimzed) i.e. 16 colours (or .jpg/.gif if smaller), then recreate the ebook to see the file size savings...
I tried this with "Encyclopedia A.epub" which is 50.1 MB (52,606,545 bytes) and produced "Encyclopedia A_fixed16.epub" which is 23.5 MB (24,727,980 bytes), a 53% size reduction!

A few things I had to change (since I'm using a Western-world WinXP computer):
  • the file "Are_You_There_God?_Its_Me,_Margaret.html" was renamed "Are_You_There_God_Its_Me,_Margaret.html" as Windows didn't allow the quotation mark ("?") in the filename!
  • I reduced any image greater than 200x??? so that the short side was 200 using IrfanView and didn't enlarge smaller pictures nor used any dithering. For .gifs and .pngs, I just reduced the colors to 16 (4 bit) while with .jpgs I had better luck reducing the Quality to 70 than changing those images to .png or .gif! Any images less than 200x???, I didn't change the size, but did change the colors as above.
  • I edited all the text files (using notepad++ since it supports Unicode better than my trusty Textpad) to remove any width="???" or height="???" within <img > tags since I had reduced some image dimensions and didn't need/like them stretched back to their specified/original size.
Despite all these efforts, the file is too large to load for my epub reader so I couldn't test my creation thereon. However, it does load your "Encyclopedia 0-9.epub" (16MB) so it must be under some max. limit my Adobe Mobile Edition 9 doesn't support! I did preview that file using ADE (PC version).

P.S. it appears 16 color (4bit) .png images don't display properly on older versions of ADE (like the PC previewer I use), so I also prepared a 256 color .png version of "Encyclopedia A.epub" and called it "Encyclopedia A_fixed256.epub". This one added about 3MB and is 26.4 MB (27,690,600 bytes).

Quote:
Did you try to create a version without ANY images (just rename your images folder temporarily to another name) just to see the min. ebook filesize?
I tried it and for "Encyclopedia A.epub" it resulted in an ebook which is 4.63 MB (4,859,059 bytes); a 10-fold size reduction!

Last edited by nrapallo; 03-05-2011 at 09:54 AM. Reason: typo
nrapallo is offline   Reply With Quote