[Images] Rotate
This module allows you to take one or more files and either rotate the image automatically to match any recorded sensor data in the image’s EXIF data, or to explicitly rotate the image to any 90-degree angle as needed. For images taken with devices that have GPS and/or orientation sensors, these devices usually record EXIT information to the photos that they take. EXIF is an acronym for Exchangeable Image File Format and can record data such as the location where the image was taken as well as the orientation of the camera. If the camera was held at an angle different from the default, then the image when viewed in some applications which are not aware of how to display the image properly, may show the image as sideways or upside down when this happens. To fix such situations, the automatic setting of this module can be used to look at the orientation data for the image, and rotate it to match, then remove the orientation data from the image so that it displays as expected for all applications.
The parameters that the module uses are detailed in the following table.
| Parameter | I/O | Description |
|---|---|---|
| FileSource | In | This parameter specifies the source of the image files as a FileList type of parameter. As a FileList, this can be specified as just the path for a specific folder. Or it can be specified as the path to a folder with a filename pattern to limit it to specific types of filenames or extensions. Or it can be linked to a preceding [Files] Find module for more flexibility in choosing what files to process. |
| TargetFolder | In | By default, rotated images are written to the target folder without affecting the original source image. This means the target folder must be a unique location from the source folder. |
| DeleteSourceFiles | In | True: The source image is deleted once the modified file is successfully written to the target folder. False (default): The source image is not affected by the encoding process. |
| LogOutputLevel | In | Minimal: Normal output to the log. Verbose: More detailed output is written to the log, suitable for debugging purposes. |
| FileList | Out | When the module completes any work successfully, this is a FileList of all the specific images that were rotated and/or written to the target folder. Note: images that do not need rotation when in automatic mode and still copied to the target folder. |