08-24-2024, 05:18 PM | #1 |
Junior Member
Posts: 2
Karma: 10
Join Date: Aug 2024
Device: iPad
|
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) |
08-24-2024, 08:14 PM | #2 |
null operator (he/him)
Posts: 20,989
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:
BR |
Advert | |
|
08-25-2024, 04:54 AM | #3 |
Junior Member
Posts: 2
Karma: 10
Join Date: Aug 2024
Device: iPad
|
oh, haven't seen that. Thanks a lot
|
08-25-2024, 06:03 AM | #4 |
null operator (he/him)
Posts: 20,989
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. |
Tags |
epub, polish, script |
|
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 |