Image Utilities
A set of utility actions to assist with analyzing, extracting, and converting image and file content during investigations. Key functions include optical character recognition (OCR) for text extraction, rasterization (converting web content to static images), and file format conversion. All actions require a Remote Agent.
Actions
For more information about actions, see Respond to pending actions from Your Workdesk and Perform a manual action.
Convert File
Use the Convert File action to change the format of a specified file.
Action inputs
The Convert File action requires the following parameters:
| Parameter | Description |
|---|---|
Input File Format |
Required. The original format of the file that the action converts. The possible values are as follows:
The default value is |
Input File Path |
Required. The path to the file that the action converts. |
Output File Format |
Required. The resulting format of the file after the conversion process. The possible values are as follows:
The default value is |
Action outputs
The Convert File action provides the following outputs:
| Action output type | Availability |
|---|---|
| Case wall attachment | Not available |
| Case wall link | Not available |
| Case wall table | Not available |
| Enrichment table | Not available |
| JSON result | Available |
| Output messages | Available |
| Script result | Available |
JSON result
The following example shows the JSON result outputs received when using the Convert File action:
[
{
"output_format": ""
"file_path": ""
}
]
Output messages
The Convert File action can return the following output messages:
| Output message | Message description |
|---|---|
|
The action succeeded. |
Error executing action "Convert File". Reason:
ERROR_REASON |
The action failed. Check the connection to the server, input parameters, or credentials. |
Script result
The following table lists the value for the script result output when using the Convert File action:
| Script result name | Value |
|---|---|
is_success |
true or false |
OCR Image
Use the OCR Image action to perform OCR and extract text from an image file.
Action inputs
The OCR Image action requires the following parameters:
| Parameter | Description |
|---|---|
Base64 Encoded Image |
Optional. The base64 encoded string of the image file. |
File Path |
Required. The path to the image file. |
Action outputs
The OCR Image action provides the following outputs:
| Action output type | Availability |
|---|---|
| Case wall attachment | Not available |
| Case wall link | Not available |
| Case wall table | Not available |
| Enrichment table | Not available |
| JSON result | Available |
| Output messages | Available |
| Script result | Available |
JSON result
The following example shows the JSON result outputs received when using the OCR Image action:
{
"extracted_text": "",
}
Output messages
The OCR Image action can return the following output messages:
| Output message | Message description |
|---|---|
|
The action succeeded. |
Error executing action "OCR Image". Reason:
ERROR_REASON |
The action failed. Check the connection to the server, input parameters, or credentials. |
Script result
The following table lists the value for the script result output when using the OCR Image action:
| Script result name | Value |
|---|---|
is_success |
true or false |
Rasterize Content
Use the Rasterize Content action to convert vector or complex content into a fixed, bitmap image format.
Remote Agent prerequisites (Debian)
To ensure the Rasterize Content action runs successfully on a Debian-based Remote Agent, you must install the following packages and dependencies:
Playwright Python Library
Install the Playwright Python Library using the following command:
python3.11 -m pip install playwright
Browser dependencies
Install the necessary Chromium browser dependencies for Playwright to function correctly:
playwright install --with-deps chromium
Action inputs
| Parameter | Description |
|---|---|
Input Type |
Required. The type of content that the action uses as its primary input. The possible values are as follows:
The default value is |
URLs or Body |
Required. The input content to be rasterized, based on the selected
If If |
Output Type |
Optional. The resulting output format for the rasterized content. The possible values are as follows:
The default value is |
Export Method |
Optional. The method used to output the generated content. The possible values are as follows:
The default value is |
Width |
Required. The width (in pixels) used for the generated raster content. The default value is |
Height |
Required. The height (in pixels) used for the generated raster content. The default value is |
Full Screen |
Optional. If selected, the content is rendered across the entire browser window before being rasterized. Disabled by default. |
Timeout |
Optional. The maximum time (in seconds) the browser dedicates to rendering the content before rasterization begins. The maximum value is The default value is |
Wait For |
Optional. The specific state the browser must reach before the action proceeds with rasterization or content extraction. The The possible values are as follows:
The default value is |
Wait for Selector |
Optional. A CSS selector that the action waits for to appear on the page before capturing the screenshot. |
Action outputs
The Rasterize Content action provides the following outputs:
| Action output type | Availability |
|---|---|
| Case wall attachment | Not available |
| Case wall link | Not available |
| Case wall table | Not available |
| Enrichment table | Not available |
| JSON result | Available |
| Output messages | Available |
| Script result | Available |
JSON result
The following example shows the JSON result outputs received when using the Rasterize Content action:
[
{
"attachment_name": "",
"file_path": ""
}
]
Output messages
The Rasterize Content action can return the following output messages:
| Output message | Message description |
|---|---|
|
The action succeeded. |
Error executing action "Rasterize Content". Reason:
ERROR_REASON |
The action failed. Check the connection to the server, input parameters, or credentials. |
Script result
The following table lists the value for the script result output when using the Rasterize Content action:
| Script result name | Value |
|---|---|
is_success |
true or false |
Need more help? Get answers from Community members and Google SecOps professionals.