Common Scripts Pack.#This Script is part of the
Supported Cortex XSOAR versions: 6.9.0 and later.
This script pre-processes an image file by preforming one of the following actions:
- original - return the original image (the default action).
- sharpen - process that emphasizes the edges in an image to make it appear clearer and more focused.
- grayscale - convert the image to black, white, and gray colors, in which gray has multiple levels (the value of each pixel represents only the intensity information of the light).
Each action can also resize the image when given the width and height.
|Cortex XSOAR Version||6.8.0|
|action||The action to perform on the image.|
|image_resize_width||The desired width for resizing the image to.|
|image_resize_height||The desired height for resizing the image to.|
|file_entry_id||The entryID of the file to process.|
|PreProcessImage.file_entry_id_new||The entryID of the created file.||String|
|PreProcessImage.action||The action that was performed.||String|
!PreProcessImage action=sharpened file_entry_id=<file_entry_id_example> image_resize_height=1700
!PreProcessImage action=original file_entry_id=<file_entry_id_example> image_resize_height=1700 image_resize_width=500