![]() |
#1 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 26
Karma: 496542
Join Date: Dec 2011
Device: nook
|
How to shrink ePub file size
Hi,
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: 2,282
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
|
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. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 26
Karma: 496542
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: 2,282
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
|
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. |
||
![]() |
![]() |
![]() |
#5 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,613
Karma: 6718541
Join Date: Dec 2004
Location: Paradise (Key West, FL)
Device: Current:Surface Go & Kindle 3 - Retired: DellV8p, Clie UX50, ...
|
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. |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Color me gone
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,089
Karma: 1445295
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 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 26
Karma: 496542
Join Date: Dec 2011
Device: nook
|
Thanks for all the advice, everyone. I'll try irfanview at once!
|
![]() |
![]() |
![]() |
#8 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 580
Karma: 810184
Join Date: Sep 2010
Location: Norway
Device: prs-t1, tablet, Nook Simple, assorted kindles, iPad
|
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 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,058
Karma: 144284144
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
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 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 450
Karma: 343115
Join Date: Nov 2009
Location: Romania
Device: PW2 2014
|
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 |
Nameless Being
|
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 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,058
Karma: 144284144
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
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: 2,815
Karma: 24285242
Join Date: May 2010
Location: Duisburg (DE)
Device: PB 623
|
for images you might try this http://luci.criosweb.ro/riot/
|
![]() |
![]() |
![]() |
#14 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 977
Karma: 2209358
Join Date: Nov 2011
Location: London, UK
Device: Kobo Aura, Kobo Aura ONE, PocketBook InkPad Color 3
|
Quote:
![]() 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: 553
Karma: 1234566
Join Date: Jul 2010
Location: Vancouver, WA
Device: Sony PRS-T1, & Kobo Mini
|
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 | 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 |