Images in LabVIEW are Sideways

Updated Jan 29, 2018

Reported In

Software

  • LabVIEW

Issue Details

  • I am using a 2D picture control to display an image, and some display sideways.
  • Images in LabVIEW are sideways compared to how they appear in a windows thumbnail, or Windows Photo Viewer.

Solution

Most modern photo viewers do not actually rotate images, they simply add a metadata tag to indicate the proper orientation.  LabVIEW is reading the raw pixel data, without the tag, leading to the disparity.  To fix the issue, rotate the actual image.  They are a variety of ways to do this.  One such way is using a image editor such as Microsoft Paint, instead of Windows Photo Viewer.

Additional Information

More recent cameras and photo editors do not actually rotate pictures, they simply apply a metadata tag to the photo describing the proper orientation.  Older photo editors actually rotate the pixels in the image file.  The 2D picture control for LabVIEW reads the actual pixels, not the metadata tag.  Therefore the image will not appear as expected compared to newer photo viewers.  

WAS THIS ARTICLE HELPFUL?

Not Helpful