[Images] Encode
This module allows you to take one or more files and convert them all to a consistent encoding method. If you have a folder full of images that you want to use and some are .gif images, some are .jpg images, and some are .png images, maybe you want to make sure they get reencoded for proper use with some other process and can make sure they all get changed to .png format or whatever your desired image format is. When re-encoding images, the module uses the best quality settings on any image codecs that use any settings for balancing size over quality.
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, re-encoded 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. |
| EncodingMethod | In | BMP, GIF, TIFF, JPG, PNGThe image encoding method used for all the target images. The defaults is JPG. |
| 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 re-encoded and written to the target folder. |