Welcome to our Support Center

Get File Info

Description

Obtains information regarding the contents of the file. This information is supplied for standard file formats only : BMP, TIFF, JPEG, JPEG2000, PNG, or AIPD. Type : polymorphic.

 

Input parameters

 

File Path : path, file path (BMP, TIFF, JPEG, JPEG2000, PNG, AIPD).

Output parameters

 

 File Type : string, file extension.

 File Info : cluster, 

 Width : integer, image width.
 Height : integer, image height.
 Image Type : integer, specifies the type of the image.

          • Grayscale (U8) : 8 bits per pixel (unsigned, standard monochrome)
          • Grayscale (I16) : 16 bits per pixel (signed)
          • Grayscale (SGL) : 32 bits per pixel (floating point)
          • Complex (CSG) : 2 × 32 bits per pixel (floating point)
          • RGB (U32) : 32 bits per pixel (red, green, blue, alpha)
          • HSL (U32) : 32 bits per pixel (hue, saturation, luminance, alpha)
          • RGB (U64) : 64 bits per pixel (red, green, blue, alpha)
          • Grayscale (U16) : 16 bits per pixel (unsigned)

 

Example

All these exemples are snippets PNG, you can drop these Snippet onto the block diagram and get the depicted code added to your VI (Do not forget to install TIGR library to run it).

Table of Contents