Version 0.8.9
This action allows you to run a command on files inside the book. To better illustrate this I will give an example of chain I made which uses ImageMagick convert command to convert jpg and png pictures to a lower quality jpg and changes the colorspace to gray. The action will run this command for the selected files, and replace them with the resulting files. Below is a screenshot of the configuration for this action.
Notes:
- You must have the commmand installed on your system.
- Note the use of the placeholders: {inputfile}, {outputfile}.
- If the resulting output files are of different extension the input files as in the example in the screenshot, you must specify the output extension so that it is appended to the {outputfile}. Also the original filenames inside the book will changed to reflect the new extension.
- The configuration gives you the option to specify what files to include or exclude. Note that I included all png and jpg images except those that contain the name cover.
- Using the combination of Action Chains and Editor Chains, you can run this action on multiple books. Refer to the first post of this thread for more on how to combine the two plugins.