Skip to main content

Save Image

Save an image from a base64 string or data URL to a file. Use this for images captured from web pages or screenshots. If the source is a data URL (e.g. 'data:image/png;base64,...') the prefix is stripped automatically and the base64 payload is decoded before writing.

Category: File & Folder Operations · Group: Files · Activity name: SaveImage

The SaveImage activity in the designer

Example

SaveImage("<source>", "<filePath>", createDirectories=False)

Inputs

NameTypeRequiredDefaultDescription
SourcestringYesThe image as a base64 string, or a full data URL (e.g. 'data:image/png;base64,...'). The data URL prefix, when present, is stripped automatically.
File PathstringYesThe full system path where the image will be saved. The path is honored as given - the extension is not changed to match the source MIME type.
Create directoriesbooleanFalseAutomatically create any missing parent directories in the file path.