View Single Post
Old 01-18-2023, 03:43 PM   #6
capink
Wizard
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 1,196
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
Quote:
Originally Posted by tatagi View Post
thank you. but it is windows 10 that I am using. it seems like imagemagick is useful for img files, not compressing image files that are within epubs directly.



thank you.
oh, btw you're the developer of that plugin. that's nice

could you elaborate it a little further?

for example, all of my epubs are in C:\users\foldername
and some epubs are in its subfolders like
C:\users\foldername\red
C:\users\foldername\blue
etc.

in this case, what is the exact commands for bulk compress to keep new epubs with same name and folder structure?

calibre-debug -r "Editor Chains" "Compress Images" "C:\users\foldername\*.epub" "C:\users\newfoldername\*.epub"

will it work? or can I just specify the folder name so it compresses all the epubs inside?

No. You will need to write a shell script to achieve this. I am a linux user, so I can easily write a bash script that would work only in linux. Unfortunately, I don't know much about Windows Batch scripts to assist with this. Maybe someone else can help with this.
capink is offline   Reply With Quote