Process Screenshots
Convert a base64 encoded screenshot to binary data that can be saved to a file.
Parameters
screenshotResponse
The response object from the windows.screenshot
method of the Airtop client. This object contains the base64 encoded
screenshot data that needs to be processed.
Returns
processedScreenshots
An array of objects, each containing:
+ Show 5 properties
success
Indicates if the screenshot was processed successfully.
binaryData
The binary data of the screenshot, which can be saved to a file.
mimeType
The MIME type of the screenshot, used to determine the file extension.
index
The index of the screenshot in the batch.
error
An error message if the processing failed.
This guide provides examples of how to use the “process screenshots” helper function in both Node.js and Python, demonstrating the steps to take screenshots and process them effectively.