[Images] Encode

Q100027: [Images] Encode

Encodes the image using the specified imaging type if the source image is using a different type.

Parameter In/Out Description Other Info
File source In The file source is a list of one or more image files to process, using fully qualified pathnames, such as a FileList output parameter from another module. A typical example being the [Files] Find module.
Target folder In The destination folder for the image(s) once it has been successfully constrained.
Delete source files? In Check this option if you want the source files to be deleted after being successfully encoded. Default: False
Encoding method In Choices: BMP, GIF, ICON, TIFF, JPG, PNG
Specify the desired image encoding method for the supplied file(s).
Default: JPG
Log output level In Choices: Minimal, Verbose
The level of execution detail you want to appear in the log.
Default: Minimal
Processed file list Out The output pathnames that were generated.

(Italics = required parameters)

Notes

The [Images] Encode module allows an easy way for bulk updating a number of images to all use the same consistent image encoding format. This makes for a quick way to setup a process for making all your image assets for certain types of processes consistent. An example might be if you want to standardize on all photos on your website being encoded in PNG, or Portable Network Graphics format, then this module will make fast work of that process. The module can accept a list of files via the File source parameter, and will re-encode them all with the selected image encoding format. All files processed will be written to the destination specified with the Target folder parameter. The Delete source files parameter is set to false by default, so all images in the source will remain there after processing. If set to true, then the files will be removed from the source only after each file is successfully written to the Target folder. The Encoding method parameter allows specifying the desired target image encoding regardless of what format the source image uses.

Encoding method Description
BMP A common file format in older Windows applications. Lossless encoding due to direct raw digital format of the image. Supports full 24 bit color images.
GIF An old image format that is decreasing in usage. Mostly used for images that do not require a lot of colors, like logos. Still widely used due to it broad software support and support for transparency and animation. Only supports limited number of colors due to using indexed colors.
ICON Storage format for Microsoft Windows icon files. Allows storage of multiple optimzed versions of the icon image at different pixel dimensions. Not really practical for other general uses.
TIFF Originally developed for use for storing scanned documents and photos, it was an attempt to get all software vendors to use a singular interchangable image encoding format at a time when almost every vendor had a proprietary format. Even though modern versions support compression options, the existance of other modern image formats continues to push this image format towards legacy status.
JPG Originally developed for storing photos digitally, the JPEG format is a popular file format in use by most platforms. Commonly also used by cameras and mobile phones. It can also be directly used on websites. Supports full 24 bit color per pixel. File extensions can be both .jpg and .jpeg, with convention being the former.
PNG Originally started as a replacement for GIF images for use by websites. It is now a popular file format in use by most modern platforms and applications. It has most of the benefits of both the GIF and JPEG formats. While using a different compression method, it has efficient storage for photos, like JPG, and supports transparency, like GIF.
 
Last Updated:
10/3/2023 1:06:53 AM
JobServer.NET Knowledgebase © 2025