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

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 05-09-2025, 09:19 PM   #1
rumplestiltskin
Zealot
rumplestiltskin ought to be getting tired of karma fortunes by now.rumplestiltskin ought to be getting tired of karma fortunes by now.rumplestiltskin ought to be getting tired of karma fortunes by now.rumplestiltskin ought to be getting tired of karma fortunes by now.rumplestiltskin ought to be getting tired of karma fortunes by now.rumplestiltskin ought to be getting tired of karma fortunes by now.rumplestiltskin ought to be getting tired of karma fortunes by now.rumplestiltskin ought to be getting tired of karma fortunes by now.rumplestiltskin ought to be getting tired of karma fortunes by now.rumplestiltskin ought to be getting tired of karma fortunes by now.rumplestiltskin ought to be getting tired of karma fortunes by now.
 
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
rumplestiltskin is offline   Reply With Quote
Old 05-09-2025, 11:01 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,903
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
theducks is offline   Reply With Quote
Advert
Old 05-10-2025, 12:27 AM   #3
rumplestiltskin
Zealot
rumplestiltskin ought to be getting tired of karma fortunes by now.rumplestiltskin ought to be getting tired of karma fortunes by now.rumplestiltskin ought to be getting tired of karma fortunes by now.rumplestiltskin ought to be getting tired of karma fortunes by now.rumplestiltskin ought to be getting tired of karma fortunes by now.rumplestiltskin ought to be getting tired of karma fortunes by now.rumplestiltskin ought to be getting tired of karma fortunes by now.rumplestiltskin ought to be getting tired of karma fortunes by now.rumplestiltskin ought to be getting tired of karma fortunes by now.rumplestiltskin ought to be getting tired of karma fortunes by now.rumplestiltskin ought to be getting tired of karma fortunes by now.
 
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.
rumplestiltskin is offline   Reply With Quote
Old 05-10-2025, 02:30 AM   #4
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,190
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.
kovidgoyal is offline   Reply With Quote
Old 05-10-2025, 02:05 PM   #5
rumplestiltskin
Zealot
rumplestiltskin ought to be getting tired of karma fortunes by now.rumplestiltskin ought to be getting tired of karma fortunes by now.rumplestiltskin ought to be getting tired of karma fortunes by now.rumplestiltskin ought to be getting tired of karma fortunes by now.rumplestiltskin ought to be getting tired of karma fortunes by now.rumplestiltskin ought to be getting tired of karma fortunes by now.rumplestiltskin ought to be getting tired of karma fortunes by now.rumplestiltskin ought to be getting tired of karma fortunes by now.rumplestiltskin ought to be getting tired of karma fortunes by now.rumplestiltskin ought to be getting tired of karma fortunes by now.rumplestiltskin ought to be getting tired of karma fortunes by now.
 
Posts: 105
Karma: 1435120
Join Date: Nov 2010
Location: West of the Pecos
Device: FireHD8, iPad
Quote:
Originally Posted by kovidgoyal View Post
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.
Yes; that worked. Picking a pixel size is, I guess, one way of accomplishing this. As the images in my book are "png", that may be the only "size reducer" available(?). I think I'd like to have an option of compression but maintain pixel size. Does that make sense?

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
rumplestiltskin is offline   Reply With Quote
Advert
Old 05-10-2025, 04:28 PM   #6
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,123
Karma: 144284184
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.
JSWolf is offline   Reply With Quote
Old Yesterday, 05:13 AM   #7
JohnnyBook
Groupie
JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.
 
Posts: 191
Karma: 126824
Join Date: Dec 2008
Location: Out There
Device: K3 W/3G (Fixed screen!) & Paperwhite Wifi
Quote:
Originally Posted by kovidgoyal View Post
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.
THIS!! I think you fixed a problem for me. (Did not know about this feature)

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; Yesterday at 05:32 AM.
JohnnyBook is offline   Reply With Quote
Old Yesterday, 05:32 AM   #8
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,190
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.
kovidgoyal is offline   Reply With Quote
Old Yesterday, 05:38 AM   #9
JohnnyBook
Groupie
JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.
 
Posts: 191
Karma: 126824
Join Date: Dec 2008
Location: Out There
Device: K3 W/3G (Fixed screen!) & Paperwhite Wifi
Quote:
Originally Posted by kovidgoyal View Post
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.
Ok maybe update the tool tip, so instead of saying height and width, it says long side and short side.

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"
JohnnyBook is offline   Reply With Quote
Old Yesterday, 05:42 AM   #10
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,190
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by JohnnyBook View Post
Ok maybe update the tool tip, so instead of saying height and width, it says long side and short side.

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"
And that's exactly correct. The image will fit inside a rectangle of no more than 100 width and 200 height, which is what I said in my previous post.
kovidgoyal is offline   Reply With Quote
Old Yesterday, 05:50 AM   #11
JohnnyBook
Groupie
JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.
 
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!
JohnnyBook is offline   Reply With Quote
Old Yesterday, 07:29 PM   #12
rumplestiltskin
Zealot
rumplestiltskin ought to be getting tired of karma fortunes by now.rumplestiltskin ought to be getting tired of karma fortunes by now.rumplestiltskin ought to be getting tired of karma fortunes by now.rumplestiltskin ought to be getting tired of karma fortunes by now.rumplestiltskin ought to be getting tired of karma fortunes by now.rumplestiltskin ought to be getting tired of karma fortunes by now.rumplestiltskin ought to be getting tired of karma fortunes by now.rumplestiltskin ought to be getting tired of karma fortunes by now.rumplestiltskin ought to be getting tired of karma fortunes by now.rumplestiltskin ought to be getting tired of karma fortunes by now.rumplestiltskin ought to be getting tired of karma fortunes by now.
 
Posts: 105
Karma: 1435120
Join Date: Nov 2010
Location: West of the Pecos
Device: FireHD8, iPad
Quote:
Originally Posted by JSWolf View Post
The solution I use is to load the ePub into the editor and...snip...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....snip
I've been playing with an ePub that has an advert page and a picture intended for that page. I deleted the page (as it was a discrete ".htm" page) and the jpg intended for that page. No errors found and, of course, that page is no longer part of the ePub. Nice suggestion.

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!
rumplestiltskin is offline   Reply With Quote
Old Yesterday, 08:19 PM   #13
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,123
Karma: 144284184
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 rumplestiltskin View Post
I've been playing with an ePub that has an advert page and a picture intended for that page. I deleted the page (as it was a discrete ".htm" page) and the jpg intended for that page. No errors found and, of course, that page is no longer part of the ePub. Nice suggestion.

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!
You load the ePub into the editor and remove whatever fonts you do not want. Then you go to the Tools menu and remove unused CSS. Then you edit the CSS to remove the @font for the removed fonts and the font family lines in the CSS. You have to do it manually.
JSWolf is offline   Reply With Quote
Old Yesterday, 08:21 PM   #14
rumplestiltskin
Zealot
rumplestiltskin ought to be getting tired of karma fortunes by now.rumplestiltskin ought to be getting tired of karma fortunes by now.rumplestiltskin ought to be getting tired of karma fortunes by now.rumplestiltskin ought to be getting tired of karma fortunes by now.rumplestiltskin ought to be getting tired of karma fortunes by now.rumplestiltskin ought to be getting tired of karma fortunes by now.rumplestiltskin ought to be getting tired of karma fortunes by now.rumplestiltskin ought to be getting tired of karma fortunes by now.rumplestiltskin ought to be getting tired of karma fortunes by now.rumplestiltskin ought to be getting tired of karma fortunes by now.rumplestiltskin ought to be getting tired of karma fortunes by now.
 
Posts: 105
Karma: 1435120
Join Date: Nov 2010
Location: West of the Pecos
Device: FireHD8, iPad
Quote:
Originally Posted by JSWolf View Post
You load the ePub into the editor and remove whatever fonts you do not want. Then you go to the Tools menu and remove unused CSS. Then you edit the CSS to remove the @font for the removed fonts and the font family lines in the CSS. You have to do it manually.
Okay; that actually sounds straightforward. I'll follow your directions. Thank you.
rumplestiltskin is offline   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
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


All times are GMT -4. The time now is 01:58 AM.


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