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 Yesterday, 04: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 Yesterday, 07: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,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:

Click image for larger version

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

BR
BetterRed is offline   Reply With Quote
Advert
Old Today, 03: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
Reply

Tags
epub, polish, script


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 04:28 AM.


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