# Write Image

The Write Image function allows you to save images to an SFTP server.

## Enable Outputs

Before editing the Write Image settings, make sure Outputs are enabled for the app.

Go to the Settings menu. Select Communications.

Toggle Outputs to enable it. Click Apply to save your changes.

After enabling Outputs, the Outputs indicator turns to green in the corner of the image viewfinder.

## Set Write Image Preferences

Enable saving images to SFTP server by switching on the Write Image toggle.

Click on the pencil icon to edit the Write Image settings.

Note:

If the Outputs toggle is switched off in the Communications tab, the vision sensor does not send outputs even if you switch the Write Image toggle on. In this case, you receive an error message:

Clicking on the message link takes you to the Communications tab in the Settings menu.

### Write Image Settings

1 | Server Address | Enter your server address.
2 | File Path | Enter the path name where you want to save your files. Note: The file path is relative to the root path defined in the SFTP server settings. The file path must begin with the / character, and end without one.
3 | Username | Enter server username.
4 | Password | Enter server password. Note: If you have not enabled HTTPS, the password is sent through insecure HTTP. To send the password securely, you have to upload certificates to enable HTTPS. For more information, see Secure Communication.
5 | Test Connection | Click to test the connection. If the connection is successful, the indicator turns GREEN. The dialog also displays the last time you checked the connection. If the connection fails, the indicator turns RED, and the dialog displays an error message. Reasons the connection failed are: The server is unavailable. The username does not exist on the server. The password is incorrect. The file path does not exist on that server. The user does not have write access to that file path.
6 | Images to Write | Choose which images to send to the server. Note: The Fail Only option not only includes images labeled with failure classes, but also images that did not pass due to errors, such as the fixture was not found or the ROI was out of bounds.
7 | File Type | Choose from the dropdown list to save your files as .bmp, .jpeg, or .png.
8 | Overlay Graphics | Click to enable writing images together with overlay graphics, such as the heat map, the fixture graphics, or the rectangle of the ROI. If this option is enabled, the vision sensor writes the following files to the server: The image For Anomaly Detector, an image of the heatmap, named <image_file_name>_heatmap.png An <image_file_name>.svg file with the overlay graphics The last .svg file references the other files to combine them with any geometric overlay graphics.
9 | Apply | Click to save changes.

After finalizing your settings, click on Enter Monitoring View to watch the live results of training the program.