01-02-2013, 07:06 AM | #1 |
Groupie
Posts: 190
Karma: 168826
Join Date: Jul 2011
Location: Vancouver, BC
Device: Kobo Aura One
|
Reducing the size of epub files?
Hey all...
I tried doing a search but couldn't find anything. Is there a way to reduce the size of larger epub files? I have a few that seem to be very large, even though they don't contain illustrations or anything like that. They're generally the kepubs I buy from Kobo--I've noticed those tend to be on the larger side. Not sure if this is a silly question or not, but I figured it couldn't hurt to ask. |
01-02-2013, 07:38 AM | #2 |
Color me gone
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
Are you sure contain no images? Open them up with a zip program or Sigil and see if any images are shown. It may be that some pages have been saved as images instead of converted to text.
You might also check the stylesheet and see how many items are there. If it is converted poorly from Word, it could be bloated with huge numbers of extra styles which take up space in the stylesheet and even more in the text. |
Advert | |
|
01-02-2013, 07:46 AM | #3 |
Groupie
Posts: 190
Karma: 168826
Join Date: Jul 2011
Location: Vancouver, BC
Device: Kobo Aura One
|
Hmm.
I'm very sure that the ones I have in mind don't contain illustrations, so I'll have to figure out working with the stylesheet, which I haven't played with yet. And I'm new to Sigil, so that will take a bit of mucking about as well. Thanks for the response! |
01-02-2013, 07:47 AM | #4 |
Evangelist
Posts: 450
Karma: 343115
Join Date: Nov 2009
Location: Romania
Device: PW2 2014
|
There's also the issue with embedded fonts. Acrobat can subset glyphs from a font for PDF files, whereas ePub files will contain the entire font. This means that if you're only using one character from a 600 KB font file, the entire font file will be embedded, where it would only take 6-10 KB in a subset. And if you use 10 different 600 KB font families... You get the idea.
But in general, images usually take up the most amount of space. Last edited by DSpider; 01-02-2013 at 07:50 AM. |
01-02-2013, 10:34 AM | #5 |
Color me gone
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
The images may not be illustrations, but whole pages. Or there may be hidden spacers.
Just start Sigil, Open the file and look in the left side under the book browser. There will be a folder for Styles. If there is a plus on it, click it and any stylesheets will appear. Double click on any one of them and it will appear in the main window. Then you can look at it to see what is there. Otherwise, click on any + that is with the Images folder and see what pops up. Ditto with the fonts folder. You don't have to know what to do about anything you find, but at least it will put you on the track of what might be making the file large. |
Advert | |
|
01-02-2013, 11:03 AM | #6 |
Grand Sorcerer
Posts: 27,547
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Kepub is not epub. No matter how similar the names sound. Keypubs contain database-like elements for all kinds of extra "features." If file-size is that much of a concern, then re-download the books from Kobo in the standard epub format instead of their proprietary keypub format. I think you'll find the size more like what you would expect, based on content.
Last edited by DiapDealer; 01-02-2013 at 01:43 PM. |
01-08-2013, 05:39 PM | #7 | |
Resident Curmudgeon
Posts: 73,897
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
What I do is take the finished ePub, load it into Calibre, convert to ePub using subsetting and then I take the font directory out of the converted ePub, replace the font directory in the finished ePub, fix the CSS/OPF as needed to match the fonts and done. Now I have an much smaller ePub with subsetted fonts. |
|
01-09-2013, 04:39 AM | #8 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Calibre does? That would be nice. Perhaps I should look up the part in the source that does the subsetting and see if I can use it outside Calibre.
|
01-09-2013, 08:14 PM | #9 |
Resident Curmudgeon
Posts: 73,897
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Reducing Paperwhite Glowlight/Screensaver Timeout? | rubbercow | Kindle Developer's Corner | 3 | 08-30-2013 02:11 PM |
Removing files of zero size in Calibre | zynster | Library Management | 4 | 05-21-2012 07:40 AM |
Calibre reducing image sizes? | HarryT | Conversion | 2 | 04-21-2011 08:18 AM |
PRS-600 Reducing glare with plastic cover | NoHolyGrail | Sony Reader | 2 | 08-05-2010 10:15 PM |
Reducing line spacing | rjcroy | Kobo Reader | 3 | 06-11-2010 09:23 PM |