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.
resize, image, jpg, jpeg, png, bmp, wbmp, gif
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.
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 |
| Specifies which algorithm should be used to resize the image |
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 |