export_image
Export a PixInsight image view to a file in the workspace output or state folder, with format determined by extension and metadata preserved, without altering the working image.
Instructions
Write an image to a file in the workspace's output or state folder. A relative file_path is resolved under /output; an absolute one must lie inside /output or the state folder (/agentic by default), and a path anywhere else is refused. Format comes from the extension: .tif/.tiff, .png, .jpg/.jpeg, .xisf, .fits. TIFF and PNG default to 16-bit, JPEG to 8-bit; use 32 for float. The file keeps the image's FITS keywords, astrometric solution and view properties (formats that cannot store them drop them). The working image is not changed. Missing parent folders are created.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bits | No | Sample depth for tif/png/xisf/fits (default 16 for tif/png, 32 otherwise) | |
| view_id | Yes | View ID to export | |
| file_path | Yes | Output file path: relative to <workspace>/output, or absolute inside <workspace>/output or the state folder |