ConvertToJPEG

Converts the current image to a JPEG.

Syntax

bool ConvertToJPEG ()

Parameters

None.

Returns

True, if the image is converted to a JPEG. False, if the input image is a JPEG or if a failure occurs during the conversion.

Level

Page level.

Details

Converts the current image to a JPEG. The output file name will have a JPG extension.

Supported input file formats: BMP (1, 4, 8, or 24-bit), GIF (1, 4 or 8-bit), PNG (1, 4, 8 and 24-bit), and TIFF (1, 4, 8 and 24-bit) with compression (RLE, Group 3 fax, and Group 4 fax, Pack Bits, LZW, JPEG).

Note: Not all actions that manipulate images support the same input file formats as this action.
Example:
SetLuminanceFactor("24")
SetChrominanceFactor("10")
SetGrayScale("True")
ConvertToJPEG()