Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 04-18-2026, 09:37 AM   #1
FelixKrull
Enthusiast
FelixKrull is clearly one to watchFelixKrull is clearly one to watchFelixKrull is clearly one to watchFelixKrull is clearly one to watchFelixKrull is clearly one to watchFelixKrull is clearly one to watchFelixKrull is clearly one to watchFelixKrull is clearly one to watchFelixKrull is clearly one to watchFelixKrull is clearly one to watchFelixKrull is clearly one to watch
 
Posts: 45
Karma: 10738
Join Date: Aug 2018
Device: none
EPUB (14 MB) becomes AZW3 (140 MB) after conversion!?

Hi everyone,

I’m running into a pretty extreme file size issue when converting an EPUB to AZW3 using Calibre.

Example:

Original EPUB: 14 MB (contains lots of pictures)
Converted AZW3: 140 MB

So the output file is about 10× larger, which seem way beyond normal differences.

From what I understand so far:

EPUB is essentially a ZIP container, so its size is heavily compressed
During conversion, images and content may be extracted and stored less efficiently
There might be duplication of resources (HTML, images, fonts?) in AZW3
PNG images in particular might be a problem if they are not recompressed

However, even considering all that, a jump from 14 MB to 140 MB feels excessive.

What I already checked/tested:

The option “Do not compress images” is NOT enabled
Tried different output profiles (Kindle Paperwhite etc.)
No obvious difference in settings affecting file size

Questions:

1. What are the most common reasons for such a drastic size increase?
2. Does Calibre re-encode images at all, or mostly pass them through unchanged?
3. Is there any built-in way to force proper image compression (e.g. reduce JPEG quality or convert PNG → JPEG)?
4. Could internal duplication in AZW3 (KF8 structure) explain such a large factor?

If needed, I can inspect the EPUB contents (images, formats, resolutions), but I’d like to understand first whether this behavior is expected or indicates a specific issue.

Any insigts or best practices would be appreciated!

Thanks in advance.
FelixKrull is offline   Reply With Quote
Old 04-18-2026, 10:14 AM   #2
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 75,557
Karma: 320245568
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
Use KindleUnpack on the AZW3 and see where the space is going. It's probably in images, so compare them to the images in the ePub.
pdurrant is online now   Reply With Quote
Advert
Old 04-18-2026, 10:28 AM   #3
FelixKrull
Enthusiast
FelixKrull is clearly one to watchFelixKrull is clearly one to watchFelixKrull is clearly one to watchFelixKrull is clearly one to watchFelixKrull is clearly one to watchFelixKrull is clearly one to watchFelixKrull is clearly one to watchFelixKrull is clearly one to watchFelixKrull is clearly one to watchFelixKrull is clearly one to watchFelixKrull is clearly one to watch
 
Posts: 45
Karma: 10738
Join Date: Aug 2018
Device: none
Yes, it does seem to be the images, but I’m still trying to understand how this is even possible.

In the EPUB, I see a lot of PNG files (in the built-in editor it says “1592@1.4 GB” under 'pictures'), but after conversion they appear to be massively inflated in size.

Why would PNG images grow that much during conversion? I would have expected them to stay roughly the same, or at least not increase by such a large factor. PNG is lossless.

Is Calibre reprocessing PNGs in a way that removes compression efficiency, or is this related to how AZW3/KF8 stores images internally?

Trying to understand the mechanism behind this.
FelixKrull is offline   Reply With Quote
Old 04-18-2026, 11:44 AM   #4
gbm
Wizard
gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.
 
Posts: 2,262
Karma: 8891824
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
In Convert-AZW3 output make sure that "Disable compression of the file contents" is not checked.

bernie
Quote:
Originally Posted by FelixKrull View Post
Yes, it does seem to be the images, but I’m still trying to understand how this is even possible.

In the EPUB, I see a lot of PNG files (in the built-in editor it says “1592@1.4 GB” under 'pictures'), but after conversion they appear to be massively inflated in size.

Why would PNG images grow that much during conversion? I would have expected them to stay roughly the same, or at least not increase by such a large factor. PNG is lossless.

Is Calibre reprocessing PNGs in a way that removes compression efficiency, or is this related to how AZW3/KF8 stores images internally?

Trying to understand the mechanism behind this.
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2026-04-18 11-43-45.png
Views:	45
Size:	141.5 KB
ID:	222653  
gbm is offline   Reply With Quote
Old 04-18-2026, 11:48 AM   #5
FelixKrull
Enthusiast
FelixKrull is clearly one to watchFelixKrull is clearly one to watchFelixKrull is clearly one to watchFelixKrull is clearly one to watchFelixKrull is clearly one to watchFelixKrull is clearly one to watchFelixKrull is clearly one to watchFelixKrull is clearly one to watchFelixKrull is clearly one to watchFelixKrull is clearly one to watchFelixKrull is clearly one to watch
 
Posts: 45
Karma: 10738
Join Date: Aug 2018
Device: none
I have done that, see my posting:

Quote:
What I already checked/tested:

The option “Do not compress images” is NOT enabled
FelixKrull is offline   Reply With Quote
Advert
Old 04-18-2026, 11:50 AM   #6
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 75,557
Karma: 320245568
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
Quote:
Originally Posted by FelixKrull View Post
In the EPUB, I see a lot of PNG files (in the built-in editor it says “1592@1.4 GB” under 'pictures'), but after conversion they appear to be massively inflated in size.
Rather than looking at pictures in general, I'd look at one picture in the unzipped epub, and the same picture in the unpacked AZW3, and then you'll be able to tell what kind of conversion is or isn't happening.

zip shouldn't be able to compress a PNG very much. But I suppose if the original PNGs were saved uncompressed, the EPUB might be able to compress them more than AZW3.
pdurrant is online now   Reply With Quote
Old 04-18-2026, 12:17 PM   #7
Gormagon
monstrous mythical beast
Gormagon ought to be getting tired of karma fortunes by now.Gormagon ought to be getting tired of karma fortunes by now.Gormagon ought to be getting tired of karma fortunes by now.Gormagon ought to be getting tired of karma fortunes by now.Gormagon ought to be getting tired of karma fortunes by now.Gormagon ought to be getting tired of karma fortunes by now.Gormagon ought to be getting tired of karma fortunes by now.Gormagon ought to be getting tired of karma fortunes by now.Gormagon ought to be getting tired of karma fortunes by now.Gormagon ought to be getting tired of karma fortunes by now.Gormagon ought to be getting tired of karma fortunes by now.
 
Gormagon's Avatar
 
Posts: 123
Karma: 4504294
Join Date: May 2023
Location: Klopstokia
Device: Tab Ultra C, Meebook P78 Pro, Viwoods AIPaper Reader, various NXTPAPER
Quote:
Originally Posted by FelixKrull View Post
Yes, it does seem to be the images, but I’m still trying to understand how this is even possible.
It seems (like in "I don't really know but assume") or it is (like in "I really compared the files in depth")?

Did you choose "Edit Book" in calibre for the azw3 and epub file and/or open the epub file as archive in 7zip to look at the numbers and sizes of the html, style and picture files. Then you should be able to see what's causing the enlargement.

You could replace the picture files in the azw3 file in calibre with the picture files from the epub file (after extracting them). Since I only use calibre for very rare conversions into epub I only tested this with one picture I added to a azw3. Maybe there's a script to replace/import a large number of files into azw3. I don't know.
Gormagon is offline   Reply With Quote
Old 04-18-2026, 12:31 PM   #8
FelixKrull
Enthusiast
FelixKrull is clearly one to watchFelixKrull is clearly one to watchFelixKrull is clearly one to watchFelixKrull is clearly one to watchFelixKrull is clearly one to watchFelixKrull is clearly one to watchFelixKrull is clearly one to watchFelixKrull is clearly one to watchFelixKrull is clearly one to watchFelixKrull is clearly one to watchFelixKrull is clearly one to watch
 
Posts: 45
Karma: 10738
Join Date: Aug 2018
Device: none
Unpacking the epub with 7-zip shows that it is in fact exactly the pictures which cause the enlargement.

So if I would replace the pictures after unpacking nothing would change. I would have to replace the pictures without unpacking the epub, but how is this supposed to work?

This seems to be a flaw within calibre's compression when converting epub to azw3.
FelixKrull is offline   Reply With Quote
Old 04-18-2026, 12:42 PM   #9
Gormagon
monstrous mythical beast
Gormagon ought to be getting tired of karma fortunes by now.Gormagon ought to be getting tired of karma fortunes by now.Gormagon ought to be getting tired of karma fortunes by now.Gormagon ought to be getting tired of karma fortunes by now.Gormagon ought to be getting tired of karma fortunes by now.Gormagon ought to be getting tired of karma fortunes by now.Gormagon ought to be getting tired of karma fortunes by now.Gormagon ought to be getting tired of karma fortunes by now.Gormagon ought to be getting tired of karma fortunes by now.Gormagon ought to be getting tired of karma fortunes by now.Gormagon ought to be getting tired of karma fortunes by now.
 
Gormagon's Avatar
 
Posts: 123
Karma: 4504294
Join Date: May 2023
Location: Klopstokia
Device: Tab Ultra C, Meebook P78 Pro, Viwoods AIPaper Reader, various NXTPAPER
Someone has to unzip the epub file, either you yourself or some program/script.
If you extract them yourself, you could delete the enlarged pictures in the azw3 file with calibre after opening the azw3 file with "edit book", then add the original pictures of the unzipped epub file. If you do this one by one, I guess, it will take quite some time with a large number of pictures. Better look for a script or plugin that does this in calibre.
Gormagon is offline   Reply With Quote
Old 04-18-2026, 12:54 PM   #10
FelixKrull
Enthusiast
FelixKrull is clearly one to watchFelixKrull is clearly one to watchFelixKrull is clearly one to watchFelixKrull is clearly one to watchFelixKrull is clearly one to watchFelixKrull is clearly one to watchFelixKrull is clearly one to watchFelixKrull is clearly one to watchFelixKrull is clearly one to watchFelixKrull is clearly one to watchFelixKrull is clearly one to watch
 
Posts: 45
Karma: 10738
Join Date: Aug 2018
Device: none
Quote:
Originally Posted by Gormagon View Post
Someone has to unzip the epub file, either you yourself or some program/script.
If you extract them yourself, you could delete the enlarged pictures in the azw3 file with calibre after opening the azw3 file with "edit book", then add the original pictures of the unzipped epub file....
Maybe I didn’t explain that clearly:

I already unzipped the EPUB and looked at the images. The issue is that the images themselves are already large at that stage. So even before any AZW3 conversion, the extracted PNG files are much bigger than what the 14 MB EPUB size would suggest.

That’s why simply replacing images in the AZW3 with those from the EPUB doesn’t really help in my case, they’re effectively the same (already “inflated”) files once extracted.

So the core of my confusion is this:

How can the EPUB be only arond 14 MB, while the extracted image assets (PNG) already add up to a much larger size? Is this purely due to zip compression efficiency on PNG files, or is there something else going on (e.g. optimization tricks inside the EPUB container)?

In other words, the size jump seems to happen between:
EPUB (compressed container) > extracted contents

not just during:
EPUB to AZW3 conversion
FelixKrull is offline   Reply With Quote
Old 04-18-2026, 01:06 PM   #11
Gormagon
monstrous mythical beast
Gormagon ought to be getting tired of karma fortunes by now.Gormagon ought to be getting tired of karma fortunes by now.Gormagon ought to be getting tired of karma fortunes by now.Gormagon ought to be getting tired of karma fortunes by now.Gormagon ought to be getting tired of karma fortunes by now.Gormagon ought to be getting tired of karma fortunes by now.Gormagon ought to be getting tired of karma fortunes by now.Gormagon ought to be getting tired of karma fortunes by now.Gormagon ought to be getting tired of karma fortunes by now.Gormagon ought to be getting tired of karma fortunes by now.Gormagon ought to be getting tired of karma fortunes by now.
 
Gormagon's Avatar
 
Posts: 123
Karma: 4504294
Join Date: May 2023
Location: Klopstokia
Device: Tab Ultra C, Meebook P78 Pro, Viwoods AIPaper Reader, various NXTPAPER
You could use IrfanView to save the png files with a higher compression level (that is if they are not already using compression level 9) or convert them to jpg files and adjust the quality to reduce the file size. Irfanview can also make batch conversions.
Then you could add these optimized picture files to the azw3 file.
Gormagon is offline   Reply With Quote
Old 04-18-2026, 02:46 PM   #12
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 75,557
Karma: 320245568
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
Quote:
Originally Posted by FelixKrull View Post
How can the EPUB be only arond 14 MB, while the extracted image assets (PNG) already add up to a much larger size? Is this purely due to zip compression efficiency on PNG files, or is there something else going on (e.g. optimization tricks inside the EPUB container)?
Assuming all the pictures are unique, it's almost certainly that the png images aren't compressed as well as they should be, and so the zip compression of the EPUB compresses them further.

You could try using the "losslessly compress images" option of the Polish Ebooks calibre extension on the epub should should makes the PNG images smaller. (A lot easier than doing it manually). Then the AZW3 would also be smaller.

To find out exactly what's going on would require examining one of the original PNGs to see what settings it's been saved with.

I'd say that uploading one PNG here would be considered fair use, if you don't have the expertise to examine it yourself. But that's really just for interest.

I expect that running the Polish Ebooks plugin on the ePub will make the AZW3 from a conversion of the polished ePub a lot smaller.
pdurrant is online now   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting PDF Book to AZW3 - Massive file size! -Palamedes- Conversion 1 10-11-2024 07:55 PM
Increase font size when print .azw3/.epub to .PDF mgbsher Calibre 1 02-12-2022 05:44 AM
Drastic Size difference in AZW3 vs EPUB (Overdrive library) ghostdad Kindle Formats 2 01-21-2019 07:12 PM
Font size changes when using rem (azw3 to epub) patrik Conversion 10 02-18-2017 06:08 PM
Calibre: epub to azw3 generationg huge file size zamana Conversion 12 01-09-2014 12:36 AM


All times are GMT -4. The time now is 10:48 AM.


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