Action - Modify Image
The action Modify Image can be used to modify an image that was previously loaded with an action Init Variable Image File.
Examples:
- Load an image, shrink the size and send the smaller file by mail.
Settings
Variable
The name of the variable holding the pixel data of the image. Variables are supported.
Operation
The type of modification to apply to the image:
- Scale: change the size of the image either respecting the aspect ratio or by distorting the image
- Rotate: rotates the image by 90° or 180°
- Mirror: mirrors the image horizontally or vertically
- Crop & Scale: extracts the largest possible area from the center of the image by respecting the aspect ratio of the original image and scales to the desired size
- Crop to Selection: crops the image to the defined area
Width (Scale)
The new width of the image. The width is adjusted proportionally, when only the new height is specified. Variables are supported.
Height (Scale)
The new height of the image. The height is adjusted proportionally, when only the new width is specified. Variables are supported.
Rotate
How the image should be rotated.
Mirror
If the image should be mirrored horizontally or vertically.
Width (Crop & Scale)
The new width of the image. Variables are supported.
Height (Crop & Scale)
The new height of the image. Variables are supported.
X, Y (Crop to Selection)
The X and Y position of the selection. Variables are supported.
Width, Height (Crop to Selection)
The width and height of the selection. Variables are supported.
A variable is a container for a value that can be used in many actions and conditions to dynamically define a part of a text.
See action Script for a description.
See action Script for a description.
Supplied Variables
image_data
the local variable of the image
image_width
the width of the image after the modification
image_height
the height of the image after the modification