Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 03-05-2018, 08:57 AM   #1
zoliky
Member
zoliky began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Mar 2018
Device: Kindle Paperwhite
MOBI to EPUB conversion

Hello, I tried converting a MOBI file which is about 50MB in size to EPUB using Caliber. The EPUB gets reduced to about 30MB, so I suppose there's some compression involved in the process.

I'm wondering is there a way to do a 1:1 conversion from MOBI to EPUB with no compression (or minimal compression)? Any suggestion appreciated. Thanks.


Zoltan
zoliky is offline   Reply With Quote
Old 03-05-2018, 09:10 AM   #2
mbovenka
Wizard
mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.
 
Posts: 2,079
Karma: 14079267
Join Date: Oct 2007
Location: Almere, The Netherlands
Device: Kobo Sage
Quote:
Originally Posted by zoliky View Post
Hello, I tried converting a MOBI file which is about 50MB in size to EPUB using Caliber. The EPUB gets reduced to about 30MB, so I suppose there's some compression involved in the process.

I'm wondering is there a way to do a 1:1 conversion from MOBI to EPUB with no compression (or minimal compression)? Any suggestion appreciated.
The only compression that could occur is a resizing of the images in in the MOBI to a smaller size to fit your output device. Set the output profile to 'tablet' to disable this and have your device do the resizing on the fly when needed.
mbovenka is offline   Reply With Quote
Advert
Old 03-05-2018, 09:21 AM   #3
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,343
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Not to mention that since MOBI and EPUB use different compression techniques, comparing their file sizes does not mean much.
kovidgoyal is online now   Reply With Quote
Old 03-05-2018, 09:59 AM   #4
dwig
Wizard
dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.
 
dwig's Avatar
 
Posts: 1,613
Karma: 6718541
Join Date: Dec 2004
Location: Paradise (Key West, FL)
Device: Current:Surface Go & Kindle 3 - Retired: DellV8p, Clie UX50, ...
Both classic MOBI and ePub are compressed formats. You can't have an ePub without it being compressed. An ePub file is a special case ZIP archive. Classic MOBI files are encoded much like compiled programs. As Kovid mentioned, they are different compression methods that produce differing results. Also, the file structure is different and that will have an impact on file size.

mbovenka's point comes into play if the book contains images. The output profile you choose for conversion can resize and recompress the images leading to differing sizes.
dwig is offline   Reply With Quote
Old 03-05-2018, 10:12 AM   #5
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,740
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by dwig View Post
Both classic MOBI and ePub are compressed formats. You can't have an ePub without it being compressed. An ePub file is a special case ZIP archive. Classic MOBI files are encoded much like compiled programs. As Kovid mentioned, they are different compression methods that produce differing results. Also, the file structure is different and that will have an impact on file size.
You can have an ePub that's not compressed. You just store the files in the ePub in store mode. But it will be a lot larger than it needs to be. I don't see any good reason to just store all the files in an ePub. Mobi is also compressed. Just not as good as ePub and if you use the higher leve of Mobi compression, you end up using a lot more processor and battery in your Kindle to extract the files.
JSWolf is offline   Reply With Quote
Advert
Old 03-05-2018, 04:13 PM   #6
sjfan
Addict
sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.
 
Posts: 281
Karma: 7724454
Join Date: Sep 2017
Location: Bethesda, MD, USA
Device: Kobo Aura H20, Kobo Clara HD
The OP is probably conflating compression with lossiness. ZIP* is lossless, à la FLAC or PNG. You don’t lose quality or information with it like you would with a lossy format (e.g. MP3 or JPG).

So as long as you’ve got the output format set correctly (as mbovenka says), then you shouldn’t worry about it.

*Technically, DEFLATE (LZ77/Huffman) compression, which is what ZIP uses in the vast majority of real-world cases
sjfan is offline   Reply With Quote
Old 03-05-2018, 05:37 PM   #7
dwig
Wizard
dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.
 
dwig's Avatar
 
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:
Originally Posted by sjfan View Post
The OP is probably conflating compression with lossiness. ZIP* is lossless, à la FLAC or PNG. ...
Correct for ZIP archives, but not so with PNG.

PNG (Portable Network Graphic) is a bitmap format and not a compression algorithm. PNG images can be compressed or uncompressed, and if compressed can use either lossless or lossy compression. It is quite false to assume that PNGs are compressed or that if compressed the compression is lossless.
dwig is offline   Reply With Quote
Old 03-05-2018, 06:07 PM   #8
sjfan
Addict
sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.
 
Posts: 281
Karma: 7724454
Join Date: Sep 2017
Location: Bethesda, MD, USA
Device: Kobo Aura H20, Kobo Clara HD
Quote:
Originally Posted by dwig View Post
Correct for ZIP archives, but not so with PNG.

PNG (Portable Network Graphic) is a bitmap format and not a compression algorithm. PNG images can be compressed or uncompressed, and if compressed can use either lossless or lossy compression. It is quite false to assume that PNGs are compressed or that if compressed the compression is lossless.
This is mostly incorrect, though you're right that uncompressed PNGs are also allowed. But the standard allows only one compression algorithm, which is the (lossless) deflate algorithm. See the PNG specification:

Quote:
PNG compression method 0 (the only compression method presently defined for PNG) specifies deflate/inflate compression with a 32K sliding window. Deflate compression is an LZ77 derivative used in zip, gzip, pkzip and related programs…
Some image encoders may do a lossy pre-pass to decrease file size (using things like Blurilizer and quantization filters) before they encode to PNG. But they are effectively editing the image in a lossy manner prior to encoding it as a PNG; any conforming PNG encoder/decoder will decode to a byte-for-byte identical copy of the image that was encoded.

You could obviously do lossy pre-processing on any format, and you wouldn't say that FLAC is lossy just because someone chose to do a pre-pass on the data to lower the effective bitrate before FLAC-encoding it.
sjfan is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
conversion from EPUB to MOBI stoneturner Conversion 2 09-22-2015 10:55 AM
conversion from mobi to epub barbados1952 Conversion 9 05-09-2013 10:01 PM
Conversion from mobi (to mobi, or epub) breaks internal links bounder Conversion 1 10-09-2012 11:56 AM
Epub to Mobi conversion MichaelGray Calibre 2 08-12-2010 01:08 PM


All times are GMT -4. The time now is 10:50 PM.


MobileRead.com is a privately owned, operated and funded community.