|
|
#1 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 23
Karma: 490330
Join Date: Dec 2011
Device: nook
|
How to shrink ePub file size
I've just finished producing an epub ebook, and I'm delighted with the end product. However, there are many images (about 1,500) inside it, which makes the end product 110mb. Is there anyway of compress the size? I know on mobi pocket you can select a compress option which makes the file smaller, is there any software that can do that for epub? At the moment I'm using Atlantis to produce the file. |
|
|
|
|
|
#2 |
|
Linux User
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 691
Karma: 1861395
Join Date: Sep 2010
Device: iriver Story HD
|
Images can't be compressed well by ZIP & Co, so you'll have to work with the images themselves (try JPEG/PNG/GIF, lower resolution, lower color depth, lower quality). JPEG is best for photographs, PNG/GIF may perform better for diagrams and the like. Try all formats and use whatever is smallest. Be careful not to lose quality in the conversion process (always keep the original, and produce all other formats based on this original).
Most readers use 800x600, some 1024x768 and only tablets have higher resolutions at this time, so if your images are larger than that you can make them smaller. If you are targeting eInk devices you can reduce the color depth to 16 levels of gray, which would certainly help to make PNG/GIF smaller, but iPad users would be rather miffed. ;-) Also check that your images don't contain unnecessary elements (such as borders or other things that could be done in HTML instead). Also check that you don't have duplicate images as generators or PDF to HTML converters like to duplicate stuff unnecessarily.
__________________
addicted to Fantasy
|
|
|
|
|
Enthusiast
|
|
|
|
#3 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 23
Karma: 490330
Join Date: Dec 2011
Device: nook
|
Thanks. Do you know a good macro I could use in Word to reduce the image sizes? Doing it 1500 times will take a very long time!
Also, how do I reduce the color depth to 16 levels of gray-don't really understand!? Is there some way of doing that for all pictures in one go? Thanks for your help; much appreciated. |
|
|
|
|
|
#4 | ||
|
Linux User
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 691
Karma: 1861395
Join Date: Sep 2010
Device: iriver Story HD
|
Quote:
Quote:
Maybe Calibre/Sigil have some support for this, I'm not sure. What kind of book are you making anyway? Comic? Picture book? Regular book with illustrations? How important is the picture quality? If you PM me a sample of your book with a couple of images I'll take a look at it, can't promise you anything concrete though.
__________________
addicted to Fantasy
|
||
|
|
|
|
|
#5 | |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 891
Karma: 1089705
Join Date: Dec 2004
Location: Paradise (Key West, FL)
Device: Current:Kindle 3/WiFi Retired:Clie - UX50, T415, ...
|
Quote:
The epub file is really just a specially organized ZIP archive. If you change the extension from .epub to .zip you can get access to its contents. Simply display the contents (on Windows a simple double-click on the ZIP is open a window), navigate to the images, and drag out copies. Edit those copies and then drag them back into the same folder overwriting the originals in the ZIP. Doing it that way you don't disturb the special organization of the other files in the epub. When done, simply change the .zip extension back to .epub and test the file.
__________________
----- dwig |
|
|
|
|
|
|
#6 |
|
Book Twiddler
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 982
Karma: 1118807
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
You might consider getting irfanview, a free program that is small, that has batch conversion options, including rename and resize. Resize is under advanced options under batch conversion.
It is much simpler to use than some of the other programs mentioned. The others are great for more complicated work. You may need to decide who your audience is for the book. The images needed for readers like your Nook can be much small and simpler than for ipad and computer users. Change color depth is an advanced option under Batch Conversion in irfanview. Images can be saving using varying levels of color information from only black and white, 16 to 256 levels of gray, 256 different colors up to millions of colors. The e-ink readers can only show 16 levels of gray so any other colors have to be converted by the reader anyway. Make sure you have your original epub safely away on a CD or DVD while you work with this or rename the file while you work with it. You may spend a while at this if things don't go well and something may seem like a brilliant idea after a number of hours, but instead wipe out all your work. If you use Sigil and work with the code, it is possible to get in a situation where you leave out a closing command, Sigil will offer to fix it automatically and automatically leave out a good chuck of your document. But if things go well, it can be as simple as dwig outlines. |
|
|
|
|
|
#7 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 23
Karma: 490330
Join Date: Dec 2011
Device: nook
|
Thanks for all the advice, everyone. I'll try irfanview at once!
|
|
|
|
|
|
#8 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 314
Karma: 501044
Join Date: Sep 2010
Location: Norway
Device: prs-t1, phone/Cool Reader
|
Imagemagick should also get a mention. Very powerful; truly excellent for batch work. Unix-based, but you can get it for Windows.
Not so excellent for a beginner... There's definitely a learning curve, plus you need to learn some shell scripting. However, if you are going to edit 100+ images, the effort is probably worth it. |
|
|
|
|
|
#9 |
|
Mobile Reader Geek
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 34,227
Karma: 13801376
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad
|
Before you go messing with your images. Remember, some people do read on a computer with hi-resolution and if the images don't look good on a computer, then you've lost customers for any future books.
__________________
|
|
|
|
|
|
#10 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 368
Karma: 298951
Join Date: Nov 2009
Location: Romania
Device: iPod touch 2G (16 GB)
|
Yeah but if the file size is 110 MB... A lot of people won't be too happy - for instance the Nook Touch users. Even though it's advertised as having 2 GB storage, the actual space (for non-B&N store bought books) is around 200 MB.
Hmm... 1500 images? That's not a book, that's a photo album! If many of them are similar you could choose one and simply display it in several parts of the book. |
|
|
|
|
|
#11 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 274
Karma: 90000
Join Date: Oct 2006
Location: Wichita, KS
Device: 1150, PRS-500, Cybook, iPad, Kndle3
|
Actually, that's a good point. Are all 1500 unique or are there instances where the same pix is used in different locations using copies of itself? (Page breaks, header bars, things like that.)
|
|
|
|
|
|
#12 |
|
Mobile Reader Geek
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 34,227
Karma: 13801376
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad
|
Are you using graphics for say chapter titles where you could take them out and use text instead?
What sort of book is this that has 1500 images?
__________________
|
|
|
|
|
|
#13 |
|
temp. out of service
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,981
Karma: 10577116
Join Date: May 2010
Location: Duisburg (DE)
Device: BeBook mini
|
for images you might try this http://luci.criosweb.ro/riot/
__________________
|
|
|
|
|
|
#14 | |
|
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 152
Karma: 10606
Join Date: Nov 2011
Location: London, UK
Device: Sony PRS-T1
|
Quote:
The PDF version of it is just over 8MB...I don't know if it is common to render code fragments as images or not. It is one way to avoid line wrapping problems I suppose. The textbook in question is DTrace - Dynamic Tracing in Oracle Solaris, Mac OS X, and FreeBSD. The epub is quite readable on my Sony PRS-T1 despite the size. |
|
|
|
|
|
|
#15 |
|
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 519
Karma: 1016456
Join Date: Jul 2010
Location: Vancouver, WA
Device: Sony PRS-T1
|
Are the images color or black and white? If they're black and white, are they actually encoded as black and white? That will save some space.
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| EPUB File Size | yuxi_kelly | ePub | 9 | 07-27-2012 09:34 AM |
| pdf to epub - file size increases | tmg820 | Conversion | 8 | 04-28-2011 04:23 PM |
| Maximum File size for epub | bhuvana786 | ePub | 4 | 12-24-2010 03:21 AM |
| ePub file size | Adjust | ePub | 16 | 10-27-2010 11:55 AM |
| v0.7.2 increase in epub file size? | skb | Calibre | 2 | 06-12-2010 05:12 PM |