There is a text format of actions file (*.act) you can use to process your image files. The actions file is just a text file that can be created by any text editor (like notepad). Each string line of the file must be one of the following commands:
Canvas_size(i1;i2;i3;i4;i5;i6) Change canvas size of an image
i1 - New height of an image (integer)
i2 - New width of an image (integer)
For i3 = 1 an image will be aligned to the left-top
i3 = 2 an image will be aligned at the center-top
i3 = 3 an image will be aligned at the right-top
i3 = 4 an image will be aligned at the center-left
i3 = 5 an image will be aligned at the center
i3 = 6 an image will be aligned at the center-right
i3 = 7 an image will be aligned at the left-bottom
i3 = 8 an image will be aligned at the center-bottom
i3 = 9 an image will be aligned at the right-bottom
i4 - Red component of canvas color (integer from 0 to 255)
i5 - Green component of canvas color (integer from 0 to 255)
i6 - Blue component of canvas color (integer from 0 to 255)
Rotate(i1;i2;i3;i4;p1) Rotates an image
i1 - Angle (integer from 0 to 360)
i2 - Red component of background color (integer form 0 to 255)
i3 - Green component of background color (integer form 0 to 255)
i4 - Blue component of background color (integer form 0 to 255)
For p1 = -1 the an image will be rotated Clockwise
p1 = 1 the an image will be rotated Counter clockwise>
Mirror(p1) Mirrors an image
For p1 = 1 the an image will be mirrored Vertically
p1 = 2 the an image will be mirrored Horizontally
Crop(i1;i2;i3;i4) Crops an image from adges
i1 - Pixels from an image Top (integer)
i2 - Pixels from an image Bottom (integer)
i3 - Pixels from an image Left (integer)
i4 - Pixels from an image Right (integer)
Crop(i1;i2) Crops an image from center
i1 - Height (integer)
i2 - Width (integer)
Resize(i1;i2;p1;p2;p3) Resizes an image
i1 - New Height of an image (integer)
i2 - New Width of an image (integer)
For p1 = 1 image will be resized by pixels
p1 = 2 image will be resized by percentage
For p2 = 1 both Height and Width will be used to resize an image (without keepping aspect)
p2 = 2 Height will be used to calculate new Width (keepping aspect)
p2 = 2 Width will be used to calculate new Height (keepping aspect)
p2 = 4 both Height and Width will be used to resize an image (with keepping aspect)
For p3 = 1 image will NOT be resized if new Height and Width are less than original
p3 = 2 image will be resized if new Height and Width are less than original