![]() |
#1 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Aug 2024
Device: iPad
|
![]()
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) |
![]() |
![]() |
![]() |
#2 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 20,824
Karma: 27620684
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 | |
|
![]() |
#3 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Aug 2024
Device: iPad
|
oh, haven't seen that. Thanks a lot
|
![]() |
![]() |
![]() |
Tags |
epub, polish, script |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Introducing New tool: "Polish" Books | kovidgoyal | Calibre | 133 | 07-09-2024 07:00 PM |
Hi Kovid: A request about "Polish Books" | LordP | Calibre | 8 | 10-06-2023 04:32 AM |
Bug: "Polish books" fails to compress images other than cover | webmaven | Calibre | 2 | 08-19-2017 05:35 AM |
"Polish books" plugin errors... | MelBr | Calibre | 1 | 03-04-2013 11:27 PM |
"Polish Books" Should Be Renamed | bbildman | Library Management | 2 | 03-01-2013 01:58 PM |