Resize Images

You can use a scale transformation task to duplicate an existing track and resize the images in the new track (the input track is not modified). The new output track is named taskName.Output, where taskName is the name of the transformation task.

The scale transformation engine also scales metadata that refers to the position of an object in the video frame, so that the positions remain correct after the image has been scaled. For example, when you resize images of faces, the metadata that describes the bounding box surrounding the face is also scaled.

To resize images

  1. Create a new configuration to send to Media Server with the process action, or open an existing configuration that you want to modify.

  2. In the [Transform] section, add a new transformation task by setting the TransformEngineN parameter. You can give the task any name, for example:

  3. Create a new configuration section to contain the task settings and set the following parameters:

    Type The transformation engine to use. Set this parameter to Scale.
    Input The name of the image track to process.
    ImageSize (Set this or ScaleFactor) The output image size in pixels (width followed by height). If you specify one dimension and set the other to 0 (zero), Media Server preserves the aspect ratio of the original image.
    ScaleFactor (Set this or ImageSize) The scale factor to use to calculate the size of the output image. Specify a number or a fraction. For example, to resize images to one third of the original dimensions, set ScaleFactor=1/3.

    For example:


    or, using a scale factor:


    For more information about the parameters that you can use to configure this task, refer to the Media Server Reference.

  4. Save and close the configuration file. HPE recommends that you save your configuration files in the location specified by the ConfigDirectory parameter.