Image.Convert

Description

This Task takes images and converts them to a different format.

Image.Convert works with the PIL/pillow package internally and supports about 30 different file formats for input and output.

Arguments

  • extension (optional) is a string that contains the extension of the target format. Do not pass a preceding dot.
# extension = 'png'  # default
extension = 'jpg'
  • background (optional) is a list of integers that represent the RGB color to use as replacement for transparency. This is only used when you convert an input file that has an alpha channel (like a png with transparent background) to an extension doesn’t support transparency (like jpg).
# background = [255, 255, 255]  # default
background = [0, 0, 0]

Requirements

Python (Non-Standard-Library Packages)

External Executables

None.

API Credentials

None.

Resources