Image Resize Plugin

The Image Resize plugin allows you to resize images via scaling or cropping.

config1

It provides the following configuration options:

  • Image Data Point:

    The data point containing the image to resize. Default: image.

  • Forward Original Image:

    Forward the original unaltered image. Default: true.

  • Resized Image Data Point:

    Name of the new Data Point containing the resized image. Valid only if Forward Original Image is true. Default: image_resized.

  • Resize Method:

    Method to resize the image. Options: scale, crop. Default: scale.

  • Scale Interpolation:

    Interpolation method used for rescaling the image. Valid only if Resize Method is scale. Options: INTER_NEAREST, INTER_LINEAR, INTER_AREA, INTER_CUBIC, INTER_LANCZOS4. Default: INTER_LINEAR.

  • Scale Size:

    Tuple containing the desired width and height of the resized image. Valid only if Resize Method is scale. Default: (224, 224).

  • Crop Slicing:

    Slices detailing the start and end points of the X and Y crops. Valid only if Resize Method is crop. Default: [0:224,0:224].

  • Enabled:

    Enable the plugin. Default: true.

See Also

foglamp-filter-greyscale - Convert 24bit RGB images to greyscale images

foglamp-filter-image-bounding-box - Uses the output of an ML model to crop out or draw bounding boxes on an image.

foglamp-filter-mirror - A filter plugin to mirror image type data points

foglamp-filter-rotate - Rotate all images found in datapoints within a reading

foglamp-north-png - A plugin to write an image type data points to PNG files in the local filesystem

foglamp-south-video4linux - A south plugin to ingests images from various devices using the Video4Linux API. Video4Linux supports a wide variety of video capture devices on Linux platforms.

foglamp-south-webcam_media - A FogLAMP south plugin that forwards image data, either directly from a webcam or from a directory of images