![]() |
#1 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 105
Karma: 1435120
Join Date: Nov 2010
Location: West of the Pecos
Device: FireHD8, iPad
|
Compress an ePub's pictures - an alternative
I occasionally run into ePubs that are larger in MB than I think they should be (or, at least, larger than I'd like for uploading to my Kindle Fire via Amazon's webpage or storage in my HD). I've tried a couple of the Calibre-based fixes but nothing worked particularly well.
I did find a website that does very good compression and doesn't seem to adversely affect the appearance of the ePub. It's https://tools.nooapps.com/en/compress-epub.html I have no association with the site's owner. Just wanted to contribute something helpful. Please let me know if it works for you (or not). ![]() Thanks, Barry |
![]() |
![]() |
![]() |
#2 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,913
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Why go out of app (calibre) Polish can compress images Losslessly
|
![]() |
![]() |
![]() |
#3 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 105
Karma: 1435120
Join Date: Nov 2010
Location: West of the Pecos
Device: FireHD8, iPad
|
Example :
Original ePub - 54MB Polish - 34MB Link - 10MB The pics in the smallest ePub are, of course, smaller in MB/KB (and resolution) but, as this wasn't an "art book" - the photos were informational - I could live with the smaller pics and having the book 20% of the original size was nice. |
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,207
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
DO an epub to epub conversion and set the max image size to whatever you like in the epub output options for arbitrary size reductions.
|
![]() |
![]() |
![]() |
#5 | |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 105
Karma: 1435120
Join Date: Nov 2010
Location: West of the Pecos
Device: FireHD8, iPad
|
Quote:
Perhaps the pictures in the ePub must be "jpg" instead of "png"? I write that because a quick web-search only reveals online png compression utilities that make the png's pixel size smaller. If so, that would probably require that the conversion option (ePub>ePub) first convert the picture to jpeg and then apply a certain amount of compression before re-assembling the ePub's components. Of course, I may be ignorant of something critical about how ePubs shouldn't use jpgs because certain e-readers don't like them. (I'm throwing stuff at the wall here, I admit.) Maybe I should be posting in the "Plugins Suggestion" thread. ![]() Thanks |
|
![]() |
![]() |
![]() |
#6 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,220
Karma: 145488788
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
The solution I use is to load the ePub into the editor and on most images I do a 70% lossless compression. Also, I delete any HTML I don't want as well as any embedded fonts I don't want if there are embedded fonts. For example, an ePub can be large because of the adverts with high-res images that I don't need so I get rid of the HTML and the graphics.
You cannot do this from that website (probably designed to steal eBooks) as you have to do this in the editor. |
![]() |
![]() |
![]() |
#7 | |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 191
Karma: 126824
Join Date: Dec 2008
Location: Out There
Device: K3 W/3G (Fixed screen!) & Paperwhite Wifi
|
Quote:
BUT a suggestion.... Sometimes the images are sideways, instead of 900x1200, they are 1200x900 Maybe instead of resizing so that instead of reducing dimensions to (for example) 600x800, It reduces the Longest dimension to the second value. In the example above, the regular image would be 600x800 But the sideways image would be 600x450. Using the longest dimension would give 800x600 instead. Is this a possibility? Or maybe Calibre already does this? Thanks, Hmm Maybe just using 800x800 would take care of this problem, since in most cases I cant think of times when the shorter side is the issue. EDIT: Yes using the same value for height and width does do what I wanted. Last edited by JohnnyBook; 05-13-2025 at 05:32 AM. |
|
![]() |
![]() |
![]() |
#8 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,207
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
calibre preserves aspect ratio when resizing images the size you set is used as maximum size the actual image size will be a rectangle that is no larger than that size in either dimension.
|
![]() |
![]() |
![]() |
#9 | |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 191
Karma: 126824
Join Date: Dec 2008
Location: Out There
Device: K3 W/3G (Fixed screen!) & Paperwhite Wifi
|
Quote:
Right now it says: "For example, a value of 100x200 will cause all images to be resized so that their width is no more than 100 pixels and their height is no more than 200 pixels" |
|
![]() |
![]() |
![]() |
#10 | |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,207
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
|
|
![]() |
![]() |
![]() |
#11 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 191
Karma: 126824
Join Date: Dec 2008
Location: Out There
Device: K3 W/3G (Fixed screen!) & Paperwhite Wifi
|
Ok, I was asking it could change so the longest side would use the higher value.
But as I edited into my original post (probably after your post which I had not seen) using 200x200 does what I was looking for. Thanks! |
![]() |
![]() |
![]() |
#12 | |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 105
Karma: 1435120
Join Date: Nov 2010
Location: West of the Pecos
Device: FireHD8, iPad
|
Quote:
I'm a bit hesitant about removing fonts as there must be some reference to them in a .css entry. Is there a simple method to remove the references once I've deleted the fonts? Thanks! |
|
![]() |
![]() |
![]() |
#13 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,220
Karma: 145488788
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#14 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 105
Karma: 1435120
Join Date: Nov 2010
Location: West of the Pecos
Device: FireHD8, iPad
|
Okay; that actually sounds straightforward. I'll follow your directions. Thank you.
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
alternative to modify epub please | stumped | Calibre | 13 | 04-21-2022 02:15 PM |
DOCX to epub no pictures | Bigo2 | Conversion | 9 | 07-08-2014 03:38 AM |
Aura HD Epub pictures-how do they work? | Canuck_in_Japan | Kobo Reader | 27 | 05-23-2013 10:44 PM |
Can Calibre compress ePub? | marty1990 | Calibre | 2 | 06-09-2012 06:52 AM |
ePub to MOBI with Pictures | Bull06 | Calibre | 12 | 07-09-2010 11:00 AM |