![]() |
#1 |
Junior Member
![]() Posts: 8
Karma: 10
Join Date: Nov 2022
Location: Los Angeles, California
Device: MacBook
|
ePub File Compression
How do I easily compress a large ePub file from 132mb down to 10mb without losing image resolution (there are about 58 images and those have already been compressed minimizing the whole document from 162mb to 132mb)?
|
![]() |
![]() |
![]() |
#2 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,292
Karma: 20171067
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Assuming the images are what is causing this HUGE file size:
I just need to ask - Those are all unique images, correct?? You'd be surprised how many times I've seen the same image duplicated multiple times because it is used multiple times in the ePub... The next thing I would check is the resolution and size of the images. They don't really need to be super high resolution 3000x5000 images in an ePub. If they are artwork or some such then you could always have a link to a website with the higher resolution images if the reader wanted to see them. I tend to keep the cover images (which are usually the highest resolution image in the book) to abt 500kb 1300x2200 or less. If it is NOT (just) the image size - I would make sure you subset any fonts and clean any code bloat from the html pages. Oh...and get rid of any unused styles in the CSS. (there's a plugin for that) Even when I have ePubs with a lot of images, I usually can get the total filesize to 1.5mb or less. Last edited by Turtle91; 12-02-2022 at 06:17 PM. |
![]() |
![]() |
![]() |
#3 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,451
Karma: 167726581
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
You may also want to check calibre's ability to re-compress image files. Open the file with the calibre ebook-editor, click on Tool => Compress images losslessly. Works quite well and can give a surprising amount of space savings depending on the images.
|
![]() |
![]() |
![]() |
#4 | |
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:
I would second Turtle's discussion with you about pixel dimensions, too. I see a lot of eBooks that have massively oversized images in them for no good reason. These tend to come out of InDesign, particularly. Once you've fixed the dimensions, which probably are biting you a bit (not certainly, but probably) you can try TINYPNG and see if that gets you closer to where you need to be. Although...look, I've done a lot of resizing and compressing over the years. 132mb to 10mb? That's... you're not going to get there, without some quality loss. You're simply not and you need to accept that before you start. Hitch |
|
![]() |
![]() |
![]() |
#5 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78,930
Karma: 143098300
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
What I do is if the images are larger enough then 1600 lines, I reduce down to 1600 lines. If they are not JPG, make then JPG. In Calibre, you can do a lossless compression to remove any rubbish in the images.
If there are embedded fonts, in Calibre, you can do a font subset to reduce the size of the fonts and remove any unused fonts. Once you have the eBook as small as possible and it's still too large, then solution from there is to just deal with it as is. |
![]() |
![]() |
![]() |
#6 | |
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:
Man, those are all going to be tough. He has 58 images that total 132mb--you have to assume that 99% of the size is in those images--which means, on average, each image totes ~2.3mb per. To make 10mb--total, for 58 images, that means he has to get them down to an average of 172.5KB. KILOBYTES, not MB. The degradation will be real. We just took a run at a job like this, and I had to tell the customer that the quality he wanted could not be done, not for under 100kb per. It just couldn't. Let's see, 10mb. Is that NetGalley? Hitch |
|
![]() |
![]() |
![]() |
#7 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78,930
Karma: 143098300
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
I doubted that the ePub would get down to 10MB in size. That my I said to deal. ![]() One other thing I thought of that would help some. If the images are grayscale but using a 24-bit palette, setting to grayscale will reduce a the size a little. |
|
![]() |
![]() |
![]() |
#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:
As I said, I had a similar inquiry a few months back, and I had to turn it down. Oh, sure, I could have taken it, been paid, and then listened to him gripe when he saw them, but geeeze, who wins that? That's a bad idea, so...I declined. if someone else took it, god love a duck, but you can't take images from 3-5mb and reduce them to 90-150kb and expect lossless perfection. Ya just can't. Hitch |
|
![]() |
![]() |
![]() |
#9 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78,930
Karma: 143098300
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
The worst company for embedded fonts is Penguin Random House. They embed fonts just for one really useless page all the time. So all of their eBooks are larger then they should be. |
|
![]() |
![]() |
![]() |
#10 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,632
Karma: 103503445
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
If you fill a house with random penguins the work quality suffers.
|
![]() |
![]() |
![]() |
#11 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78,930
Karma: 143098300
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
![]() |
#12 | ||
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,292
Karma: 20171067
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Quote:
A decent software (I use photoshop but there are plenty of good ones out there) will give you a preview with filesize for different formats - all you need to do is pick the one that best fits that style of image. Quote:
Either program works well! |
||
![]() |
![]() |
![]() |
#13 | |
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:
As I said, we just tried to do something similar and eventually, the client gave up. I'd warned him that it wouldn't, and as it happened, yes, I ended up wasting my time on demos/samples, but at least I didn't end up with an unhappy client thinking I'd sandbagged him or the like. Hitch |
|
![]() |
![]() |
![]() |
#14 | |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,292
Karma: 20171067
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Quote:
|
|
![]() |
![]() |
![]() |
#15 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,542
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
That depends on why it's 2.5 MB to start with. It wouldn't be the first time I see images as tiff or bmp... (although probably not in an ePub, where they are formally not allowed).
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Compression of space between lines of text decreases readability - MsWord to epub | Denwayz | Conversion | 11 | 04-20-2018 07:06 PM |
Epub file readers to test the created epub file. | kalees | ePub | 1 | 01-21-2014 03:25 AM |
HTML to EPUB - Cailbre Image Compression | Kevsgreat | Conversion | 3 | 05-21-2011 08:29 PM |
Opus Updating EPUB file won't change publisher data on file listing | spaze | Bookeen | 1 | 03-08-2011 01:34 AM |
ePub compression | gonzule | ePub | 3 | 10-25-2008 03:35 PM |