03-11-2012, 06:48 PM | #1 |
Connoisseur
Posts: 65
Karma: 2409168
Join Date: Mar 2011
Device: kindle
|
EPUB -> Mobi = 4x larger file size. (4mb -> 16mb)
Howdy,
Working on a book that has 130 B/W gif images. My first attempt was with larger image file sizes--roughly an 8mb EPUB. That wound up becoming a 16mb MOBI. I went back and knocked down the gifs to 3-color. This decreased my EPUB to 4mb. Calibre conversion, however, resulted in a similar 15mb MOBI size. I unpacked the MOBI and determined that Calibre is converting my 3-color 10k gifs to 50k jpegs. Is there anything I can do to prevent this? I'm annoyed at having to do all this tweaking to decrease Amazon's stupid "delivery fee." Then I see my file sizes increasing 2x to 4x just on conversion. I've also tried Kindlegen and that "only" results in a 2x file size (4mb to 8mb) but I don't like how Kindlegen handles formatting and ToC. I've accepted the fact that MOBI files are typically 2x as big as EPUBs but I'm confused about why Calibre is kicking it up 4x. Does anyone have any advice on this? At this point I would be happy with a 2x file size from Calibre. Thanks! Adam |
03-11-2012, 07:16 PM | #2 |
Linux User
Posts: 2,279
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
|
Can't help you with that, but try PNG also; for low color images, PNG sometimes compresses better than GIF. Unfortunately, Calibre also turns PNG into JPEG when converting to Mobi. Probably a bug?
|
03-11-2012, 07:21 PM | #3 | |
Grand Sorcerer
Posts: 27,551
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
|
|
03-11-2012, 07:59 PM | #4 | |
Connoisseur
Posts: 65
Karma: 2409168
Join Date: Mar 2011
Device: kindle
|
Quote:
If you wouldn't mind could you give me an idea of how your work flow goes? I do everything in code view of Sigil, so I'm sure there is no bloat there. I go directly from Sigil to Calibre and do the EPUB To MOBI convert with standard settings. Thanks! Adam |
|
03-11-2012, 08:53 PM | #5 |
Connoisseur
Posts: 65
Karma: 2409168
Join Date: Mar 2011
Device: kindle
|
Here's an interesting little side-note.
I did the 4MB EPUB to MOBI = 16MB MOBI 16MB MOBI (from above) to MOBI = 11MB MOBI I don't get it. |
03-11-2012, 08:57 PM | #6 |
Wizard
Posts: 1,613
Karma: 6718479
Join Date: Dec 2004
Location: Paradise (Key West, FL)
Device: Current:Surface Go & Kindle 3 - Retired: DellV8p, Clie UX50, ...
|
In my experience, text is more compact in MOBI than it usually is in ePub resulting in smaller files if, and only if, the ebook has only a minimal cover and includes a lot of text (novel +).
On the other hand, images don't seem to compress/compact as well in MOBI, at least when calibre does the ePub to MOBI conversion. The difference is largest when the images in the ePub are GIFs. When I build illustrated ebooks with a number of images to ePubs are usually smaller. I recently built both ePub and MOBI version of The Rome Express by Griffiths that include a decent sized cover, one frontis JPEG image and two small images (GIF) on the title page along with an ornament (GIF) at the beginning of each chapter. The ePub is 248k and the MOBI is only slightly larger at 313k. A similar pair that include a number of nearly full screen JPEG images, Three Men in a Boat by Jerome, have a much greater difference. The ePub is 1508k while the MOBI is over twice as large at 3462k. A third example is Lysistrata by Aristophanes. Here, all of the illustrations, except the cover, are GIFs in the ePub. The MOBI version is nearly 3x the size of the ePub, 632k vs, 1853k. You can download these books from my Lakemere Press site if you want to examine them. |
03-11-2012, 11:01 PM | #7 | |
Connoisseur
Posts: 65
Karma: 2409168
Join Date: Mar 2011
Device: kindle
|
Quote:
I took my original EPUB with the larger gif file sizes--roughly 9MB. I ran that through Calibre and it came out to the same 15MB MOBI as when I converted the 4MB EPUB. I then did MOBI to MOBI on that file and it dropped down to 11MB just like the 4MB EPUB did. It's just crazy that a 9MB and 4MB version of the same EPUB would both come out to be the same 15MB size MOBI. |
|
03-12-2012, 09:45 AM | #8 |
Wizard
Posts: 1,613
Karma: 6718479
Join Date: Dec 2004
Location: Paradise (Key West, FL)
Device: Current:Surface Go & Kindle 3 - Retired: DellV8p, Clie UX50, ...
|
Just for fun I did an experiment with Lysistrata. I took the same source ePub that I had fed to calibre for conversion to MOBI and fed it to Kindle Previewer 2 (aka Fire Previewer) so that its KindleGen2 engine would create a KF8 MOBI. These result was smaller than calibre's:
ePub source = 632k calbre's MOBI = 1853k KindleGen2 MOBI = 1404k |
03-12-2012, 09:51 AM | #9 |
creator of calibre
Posts: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
calibre converts all images in MOBI to JPEG. And no, it's not a bug, various older MOBI renderers have problems with GIF and PNG. I always go for compatibility over size. That is not going to change.
|
03-12-2012, 11:31 AM | #10 | |
Connoisseur
Posts: 65
Karma: 2409168
Join Date: Mar 2011
Device: kindle
|
Quote:
I totally understand the compatibility thing. Do you have any recommendations for decreasing the file size of the Calibre image conversions? I've got 10k gifs but even when I save them as jpeg with 0 quality settings they are coming up at 30k+. It's brutal because I'm looking at having to pay a $2.25 "delivery fee" for the 15MB MOBI of a $4.99 book. -Adam |
|
03-12-2012, 11:45 AM | #11 |
creator of calibre
Posts: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Use the free wifi delivery instead of the 3G one. Use @free.kindle.com as the email address. If you mean you want to upload a MOBI created with calibre, then there isn't anyway to do it, short of running calibre from source and changing the code.
Last edited by kovidgoyal; 03-12-2012 at 11:50 AM. |
03-12-2012, 11:52 AM | #12 |
Linux User
Posts: 2,279
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
|
How about making it a setting "convert images to jpeg for compatibility reasons", which defaults to on, but can be turned off? Otherwise you'll just have to switch to another mobi creation tool...
The MobileRead Wiki on Mobi file format doesn't mention any compatibility problems, instead it explicitely uses GIF in one of its examples. |
03-12-2012, 12:10 PM | #13 | |
Well trained by Cats
Posts: 29,806
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Some are fine. |
|
03-12-2012, 12:12 PM | #14 |
Linux User
Posts: 2,279
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
|
|
03-12-2012, 12:15 PM | #15 |
Well trained by Cats
Posts: 29,806
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
|
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 |
18MB EPUB converts to 40MB Mobi! What can I do to reduce Mobi file size? | perdman | Conversion | 11 | 12-09-2017 04:18 AM |
Figure out number of Kindle book locations from mobi file size? | m0ngr31 | Kindle Formats | 7 | 10-27-2011 10:31 PM |
ePub to Mobi - file size leap | lenz117 | Kindle Developer's Corner | 0 | 07-08-2011 01:39 PM |
ePub file size | Adjust | ePub | 16 | 10-27-2010 11:55 AM |