Read JPEG File VI
- Updated2025-07-30
- 5 minute(s) read
Reads a JPEG file and creates the data necessary to display the file in a picture control.
Use the Draw Flattened Pixmap VI to display the bitmap you acquire with this VI. Use the Unflatten Pixmap VI to work with the data as a 2D array.

Inputs/Outputs
path to JPEG file
—
path to JPEG file specifies the path to and name of the JPEG file to read. If you do not specify a path, LabVIEW displays a file dialog box so the user can navigate to the file.
error in (no error)
—
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
use 8 bit color table
—
use 8 bit color table reads the JPEG file at an 8 bit per pixel image depth instead of 24 bit per pixel image depth. The default value is FALSE.
path
—
path specifies the path of the pixmap.
image data
—
image data returns information about the image so you can use the Draw Flattened Pixmap VI to draw it as a picture.
error out
—
error out contains error information. This output provides standard error out functionality. |
path to JPEG file
—
error in (no error)
—
use 8 bit color table
—
path
—
image data
—
image type
—
image
—
colors
—
Rectangle
—
left
—
error out
—