Write JPEG File VI
- Updated2025-07-30
- 5 minute(s) read
Writes a JPEG file.
If you want to write a pixmap to a file, use the Flatten Pixmap VI to convert the data to an image data cluster before using this VI. If you want to write a picture to a file, use the Picture to Pixmap VI to convert the data to an image data cluster before using this VI.

Inputs/Outputs
quality (80)
—
quality specifies the level of quality you want for the JPEG using the IJG JPEG library scale, which ranges from 0 to 100. The default is 80. The scale balances image quality and file size. A value in the 75–95 range produces a compressed file with a high-quality image, and a value below 50 produces a smaller file size with a low-quality image.
path to JPEG file
—
path to JPEG file specifies the path to and name of the JPEG file to write. If you do not specify a path, LabVIEW displays a file dialog box so the user can navigate to the file.
image data
—
image data describes the image you want to draw or manipulate. If you wire 32-bit image data to this VI, the VI returns a 24-bit pixmap.
error in (no error)
—
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
path
—
path specifies the path to the JPEG file.
error out
—
error out contains error information. This output provides standard error out functionality. |
quality (80)
—
path to JPEG file
—
image data
—
image
—
colors
—
Rectangle
—
left
—
error in (no error)
—
path
—
error out
—