ResizeImage

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 (will be evaluated using flow file attributes and variable registry)
Image Height (in pixels)The desired number of pixels for the image's height
Supports Expression Language: true (will be evaluated using flow file attributes and variable registry)
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
successA FlowFile is routed to this relationship if it is successfully resized
failureA FlowFile is routed to this relationship if it is not in the specified format

Reads Attributes:

None specified.

Writes Attributes:

None specified.

State management:

This component does not store state.

Restricted:

This component is not restricted.

Input requirement:

This component requires an incoming relationship.

System Resource Considerations:

None specified.