![]() |
#1 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Nov 2013
Device: Kindle
|
Epub file far too large, advice?
Hi all!
I'm currently working on a ebook project with Sigil. Basically, I'm transcribing the contents of a wiki to make it into a epub for offline reading. The wiki has a large amount of content. Not only are there over 1000 pages in this praticualr iteration, there are also a lot of picture files. My problem is that my file is now hopelessly bloated to the extent that it takes Sigil 10-15 minutes to open it. It's current size is 113mb. Even accounting for all the pictures files, that's still far to large. A friend has suggested this bloating could be down redundant CSS and code. However, I know little about such things! My methodology has been very straightforward, literally to the extent that I just copy and paste the web page and rearrange it so that it all sits well. Is there any advice you could give a Sigil-newbie on helping slim down this file? Any and all are appreciated! |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
The issue is probably not the CSS and the code. Sure, it will help but don't expect miracles. I think the biggest part are images. See if you can live without or resize them to a smaller size.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Nov 2013
Device: Kindle
|
I originally though this, so I deleted around 300 pages as a test. It only reduced the file size by 4 mb, with is surely not enough to account for the sizes of the image files included therein?
|
![]() |
![]() |
![]() |
#4 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,908
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Calibre has a wiki (scraper) PI https://www.mobileread.com/forums/sho...d.php?t=183333
Maybe starting with a EPUB will make for a slight tighter code. Not much you can do with images except reduce size or resolution |
![]() |
![]() |
![]() |
#5 | |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
If you break the topics up, and put the wiki in "chapters" (files) inside the ePUB, it will certainly open faster and more efficiently. As it is now, it'll never work in any ereader I know of, if the single file is 113mb. Many older readers have a 256K limit, if memory serves, per file, which means, per chapter, or file inside the ePUB. Have you broken it up into workable chapters? Hitch |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Nov 2013
Device: Kindle
|
Quote:
No, each page/article is one single html file, so that each can get it's separate chapter. I decided to split the file in half, and remove the unused media file from each. It cut the first 1000 pages down to 77mb, and the other 350 from the second part of the book down to 37mb. It would seem that the picture files are indeed the issue. I'll probably have to go back and resize each individually, unless Sigil or another program has a batch resizer that could do it for me? |
|
![]() |
![]() |
![]() |
#7 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
Quote:
Dale |
|
![]() |
![]() |
![]() |
#8 | |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Hitch |
|
![]() |
![]() |
![]() |
#9 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,358
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Far be it from me to interfere in a personal project, but I would think an "offline" wiki sort of defeats the whole wiki purpose. A wiki is a constantly evolving collaboration. How will the edits/additions/deletions propogate to this static epub version of the real thing? Or is it a one-time snapshot?
Carry on. ![]() |
![]() |
![]() |
![]() |
#10 |
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, ...
|
I would suggest that before you slap this ePub with a batch resize you should take a look at the image sizes and see if there is a set, possibly small in number, of "bad apples".
Since an ePub is a ZIP container you could do the following:
With some OSs you'll have to Extract the files to get full control of how the folders are displayed. You might find that there are only a limited number of images that need most of the work. |
![]() |
![]() |
![]() |
#11 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
@Captain
Long shot, but when you open the big ePub in Sigil, are there any files in the Misc part in the Folder tree on the left? How about Fonts, or Audio or Video files that might be embedded in the epub Paul |
![]() |
![]() |
![]() |
#12 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 878
Karma: 2457540
Join Date: Nov 2011
Device: none
|
Pictures live in the Images folder, the HTML files contain references to them. Deleting pages will not remove the picture files.
|
![]() |
![]() |
![]() |
#13 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,166
Karma: 1410083
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
|
Why not using the reporting function in Sigil? There you can see where you have your big parts.
|
![]() |
![]() |
![]() |
#14 |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Choose reader application per file - handling of very large epub files | Clark G. Flipper | Onyx Boox | 2 | 06-17-2012 07:34 AM |
Large File Conversion MOBI -> ePub Hangs at 67% | Snauzoo | Conversion | 3 | 06-07-2011 01:03 PM |
Large file convert | ejacevich | Calibre | 2 | 09-29-2010 08:51 PM |
LARGE pdf file | taildragger-j3 | Sony Reader | 3 | 03-12-2010 08:48 AM |
JBL- Calibre ePub sometimes = "File too Large" Error | Ken Maltby | Ectaco jetBook | 13 | 01-09-2010 01:27 PM |