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 08-24-2024, 05:18 PM   #1
itsamemarkus
Junior Member
itsamemarkus began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Aug 2024
Device: iPad
Question What's the recommended way to "polish" all books?

Hi, I recently noticed that a lot of my technical books (mostly humble bundles) don't have optimised pngs, which means when the ebook extracts the temporary files would be 1GB+ for a 70MB epub file.

For me that's relevant because I self host calibre web and the server has to transfer (and store) all that data when I open a book in a browser.

When you edit a book there is a "compress images losslessly" option, which is what I want and which helps with my problem. But this can only be done for one book at a time as far as I know.

There is also "ebook-polish" command line utility that comes with calibre, which basically does the same, where I could build a script that runs that for every epub and replaces the original file.

I haven't done much with the calibre database or the underlying files, I just read that you probably shouldn't touch the raw files to avoid corruption.

Can someone recommend the best way to batch polish all my epub format books? (most of the books have multiple formats available)
itsamemarkus is offline   Reply With Quote
Old 08-24-2024, 08:14 PM   #2
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,997
Karma: 27620706
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Select all books in the library manager (Ctrl+A), press 'P' and the Polish books dialogue will pop:

Click image for larger version

Name:	Screenshot 2024-08-25 091326.jpg
Views:	72
Size:	182.3 KB
ID:	210384

BR
BetterRed is offline   Reply With Quote
Advert
Old 08-25-2024, 04:54 AM   #3
itsamemarkus
Junior Member
itsamemarkus began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Aug 2024
Device: iPad
oh, haven't seen that. Thanks a lot
itsamemarkus is offline   Reply With Quote
Old 08-25-2024, 06:03 AM   #4
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,997
Karma: 27620706
Join Date: Mar 2012
Location: Sydney Australia
Device: none


Even if you don't ordinarily use kb shorts, Preferences->Advanced->Shortcuts provides a list of features you might have missed. Most things there can be put in a menu or on a toolbar.
BetterRed is offline   Reply With Quote
Reply

Tags
epub, polish, script


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Introducing New tool: "Polish" Books kovidgoyal Calibre 134 10-12-2024 04:02 AM
Hi Kovid: A request about "Polish Books" LordP Calibre 8 10-06-2023 05:32 AM
Bug: "Polish books" fails to compress images other than cover webmaven Calibre 2 08-19-2017 06:35 AM
"Polish books" plugin errors... MelBr Calibre 1 03-05-2013 12:27 AM
"Polish Books" Should Be Renamed bbildman Library Management 2 03-01-2013 02:58 PM


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


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