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 Expression Language Guide.

Name Default Value Allowable Values Description
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 Algorithm Default * Default
* Scale Fast
* Scale Smooth
* Replicate Scale Filter
* Area Averaging
Specifies which algorithm should be used to resize the image

Relationships:

Name Description
failure A FlowFile is routed to this relationship if it is not in the specified format
success A FlowFile is routed to this relationship if it is successfully resized

Reads Attributes:

None specified.

Writes Attributes:

None specified.