Description:

Resizes an image to user-specified dimensions. This Processor uses the image codecs registered with the environment that NiFi is running in. By default, this includes JPEG, PNG, BMP, WBMP, and GIF images.

Tags:

resize, image, jpg, jpeg, png, bmp, wbmp, gif

Properties:

In the list below, the names of required properties appear in bold. Any other properties (not in bold) are considered optional. The table also indicates any default values, and whether a property supports the NiFi Expression Language.

NameDefault ValueAllowable ValuesDescription
Image Width (in pixels)The desired number of pixels for the image's width
Supports Expression Language: true
Image Height (in pixels)The desired number of pixels for the image's height
Supports Expression Language: true
Scaling AlgorithmDefault
  • Default Use the default algorithm
  • Scale Fast Emphasize speed of the scaling over smoothness
  • Scale Smooth Emphasize smoothness of the scaling over speed
  • Replicate Scale Filter Use the Replicate Scale Filter algorithm
  • Area Averaging Use the Area Averaging scaling algorithm
Specifies which algorithm should be used to resize the image

Relationships:

NameDescription
failureA FlowFile is routed to this relationship if it is not in the specified format
successA FlowFile is routed to this relationship if it is successfully resized

Reads Attributes:

None specified.

Writes Attributes:

None specified.