|
|
Thread Tools | Search this Thread |
08-17-2011, 05:00 PM | #1 |
Junior Member
Posts: 4
Karma: 10
Join Date: Aug 2011
Device: n/a
|
18MB EPUB converts to 40MB Mobi! What can I do to reduce Mobi file size?
Hi everybody, I'm new here on this forum. I design books in Adobe InDesign for print and ebook publishing and have been using Calibre to convert EPUBs to the Mobi format. Usually this goes quite well, but today I converted a very large EPUB, weighing in at 18MB, to MOBI, and the resulting MOBI was 40MB! I even did the conversion several times hoping it would make some difference, but to no avail.
My standard workflow involves exporting the EPUB from InDesign CS5.5 with export tagging enabled for all styles, using a TOC Style to generate the navigation, with no embedded fonts, and no generated CSS. I unzip the EPUB contents and insert my own handwritten CSS file and go through the HTML to double check it. When I'm all done I zip it all back up and run it through a validator, then I use calibre to make a mobi of it. Both the EPUB and Mobi are submitted for final publication (usually along with the final print PDF and sometimes online/interactive PDF as well). This particular file has 184 JPG/PNG images totaling 19.2 MB uncompressed; the entire uncompressed EPUB folder is 21.7 MB. Whatever is happening during the mobi conversion is adding artificial bulk to the file; I've often seen file size increases when converting to mobi, but never more than doubling of file size. Jumping from 18MB EPUB to 40MB MOBI is a bit ridiculous. Anybody have any idea what I might be able to do to reduce the file size? |
08-17-2011, 05:22 PM | #2 |
Junior Member
Posts: 4
Karma: 10
Join Date: Aug 2011
Device: n/a
|
Also, I just found and tried the MobiPocketUnpacker script from here:
https://www.mobileread.com/forums/sho...36&postcount=5 but got errors when when attempting to run it using the drag/drop interface described. I'm using Mac OS 10.6.8. Unless there is another tool for unpacking the MOBI file, it might not be possible to open it after conversion. The Mobi seems to open and display properly in Calibre, apart from taking a while to load. I should mention this book is a bit of a monster; in print, it's an 7x10 800+ page legal reference with several appendices made up of placed PDF docs, which accounts for most of those images. Unfortunately InDesign rasterizes all the placed PDF content during EPUB export and saves it out as PNG or JPG images. |
Advert | |
|
08-17-2011, 05:48 PM | #3 |
Evangelist
Posts: 448
Karma: 864744
Join Date: Mar 2011
Device: Kindle 3, LookBook, Nook Simple Touch
|
You could try using kindlegen to convert the epub, it might or might not produce a smaller output.
|
08-17-2011, 10:10 PM | #4 |
Junior Member
Posts: 4
Karma: 10
Join Date: Aug 2011
Device: n/a
|
It gets weirder. I found a free utility called PNGenie that successfully reduced the collective size of my 206 PNG images from 19MB to 10MB. My EPUB is half the size it was before, yet when I convert the new EPUB to a MOBI in Calibre, IT IS STILL 40MB. That's Just Wrong. Cutting 10 MB from the images should have cut at least 10 MB from the MOBI file size. something is definitely wrong here.
Last edited by perdman; 08-17-2011 at 11:32 PM. |
08-17-2011, 10:17 PM | #5 |
creator of calibre
Posts: 44,346
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
All images in MOBI files are stored as JPEGs. For certain classes of image, jpegs are much larger than PNGs. Various MOBI renderers have various problems trying to render PNG images.
|
Advert | |
|
08-17-2011, 10:18 PM | #6 |
Resident Curmudgeon
Posts: 75,892
Karma: 134368292
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
It could also be that the Mobipocket is not being compressed. The problem is that the HTML code is bloated in Mobipocket due to it's inability to use CSS. So every line has to specify what the CSS would specify once.
Last edited by JSWolf; 08-17-2011 at 10:21 PM. |
08-17-2011, 11:24 PM | #7 |
Junior Member
Posts: 4
Karma: 10
Join Date: Aug 2011
Device: n/a
|
Thank you for your responsses! So if I understand correctly, the file size is bloating up to 40MB because (1) my CSS has to get merged into the HTML and (2) all the tiny PNGs get blown up into JPGs? Furthermore, the file size reduction I did on my PNGs would have no effect, because MOBI does not support PNG? I guess this makes sense.
Makes me hate the MOBI format all the more. I just wish Kindle would get with the program and work with EPUB a bit more nicely! Bloating a 10MB file all the way up to 40MB is really killing this. I also tried converting the EPUB using KindleGen. It was my first time using it, as I generally prefer a GUI. The result is 25 MB, which is certainly an improvement, but it did a poorer job preserving formatting than Calibre usually does. I will continue to use Calibre for most books, but it's unfortunate that it has made a mess of this one. It's also unfortunate that the Mobi format is so much harder to work with than EPUB; I'm constantly unzipping, tweaking, and rezipping my EPUBs until I get them just right; wish I could more easily do that with my Mobis, too. I'll send both the 40 and 25 MB files to the publisher and let them choose which one to use. Thanks for your advice! |
08-27-2011, 02:40 PM | #8 |
Zealot
Posts: 136
Karma: 2137000
Join Date: Aug 2011
Location: Calgary, Alberta
Device: iPad, Kobo Glo HD
|
Have you tried Amazon's Kindle Plugin for Adobe InDesign® v0.93 to create MOBIs directly from InDesign?
|
12-08-2017, 07:40 PM | #9 |
Member
Posts: 13
Karma: 66
Join Date: Jul 2011
Device: Kindle
|
Try using Amazon's free Kindlegen utility to convert from epub to mobi. Specify standard or HuffDic compression and -- here's the key -- include "-dont_append_source" in the command prompt instruction. For me, including that last (undocumented?) option reduced file size by approximately *half*, with no effect that I can see when reading the ebook file in calibre.
Tried this with an epub I had shrunk from ~63 MB to <5 MB by lossy compression of jpg images. Normal conversion in calibre gave me a mobi of ~12 MB! Kindlegen without appending source gave me a mobi of ~6 MB. |
12-08-2017, 10:08 PM | #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, ...
|
Quote:
Two, Amazon has advanced. While they don't support ePub directly, their advanced formats, AZW3 and its brethren, do match ePub's feature and functionality almost 1:1 while still supporting Amazon's DRM methods that are substantially easier for beginners to deal with than the Adobe system that dominates the ePub world. Back to the real topic: Careful review and possibly editing in a good bitmap editor can sometimes yield JPEGs substantially smaller that the ones Id created. If those embedded PDFs-come-JPEG images came from PDFs that themselves contained scanned pages then cleaning the images so that the white backgrounds are clean with no noise will result in much smaller JPEGs. |
|
12-09-2017, 04:14 AM | #11 |
Resident Curmudgeon
Posts: 75,892
Karma: 134368292
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Are you creating dual-format Mobi from your ePub? If you, you need to use Calibre with the KindleUnpack plugin to split the Mobi and KF8 parts of the files.
If not, there's nothing you can do as Mobi is a rathe inefficient format for file size. |
12-09-2017, 04:18 AM | #12 |
The Grand Mouse 高貴的老鼠
Posts: 72,187
Karma: 308792702
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
|
The person who started this thread hasn't been on MobileRead for over six years. The described problem is from six years ago. Suggesting solutions now isn't likely to help anyone.
Thread closed. |
Tags |
convert, mobi, reduce file size |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Size of mobi much larger than epub? | comet | Kindle Formats | 8 | 11-12-2023 05:11 PM |
Update Mobi header/file metadata without doing a Mobi to Mobi conversion | RecQuery | Conversion | 2 | 06-30-2012 11:43 AM |
Converting Mobi or HTML file to Epub | Patuba | Sigil | 1 | 07-23-2011 04:14 PM |
Converting Mobi or HTML file to Epub | Patuba | ePub | 7 | 07-19-2011 12:11 PM |
ePub to Mobi - file size leap | lenz117 | Kindle Developer's Corner | 0 | 07-08-2011 01:39 PM |