Image.Resize

Description

This Task takes images and resizes them.

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

Arguments

  • width (optional) is an integer that specifies the horizontal size of the target image in pixels.
# width = 800  # default
width = 1920
  • height (optional) is an integer that specifies the vertical size of the target image in pixels.
# height = 600  # default
height = 1080
  • filter (optional) is a string that determines which algorithm should be used for the transformation. The options are antialias (=Lanczos), box, bilinear, hamming, bicubic and nearest.
    • antialias looks best but has the worst performance.
    • nearest looks worst but has the best performance.
# filter = 'antialias'  # default 
filter = 'nearest'

Requirements

Python (Non-Standard-Library Packages)

External Executables

None.

API Credentials

None.

Resources