LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Importing jpg image

Hi

 

I am trying to import a jpg file into labview but it is too large (6625x5400). Any time I try to resize it using a program other than LabVIEW, the image gets distorted. How do I fix this? I know the program runs if I use a file size of 424x362.

 

The idea is to import the image and run it as a transparent screen or run a transparent screen over top of it so it looks as if you are interacting with different parts of the image.

 

I'm going to need a step-by-step walkthrough since I'm not all that familiar with the LabVIEW environment.

 

Thanks in advance!

0 Kudos
Message 1 of 3
(2,414 Views)

@Lov3mydog wrote:

Hi

 

I am trying to import a jpg file into labview but it is too large (6625x5400). Any time I try to resize it using a program other than LabVIEW, the image gets distorted. How do I fix this? I know the program runs if I use a file size of 424x362.

 

The idea is to import the image and run it as a transparent screen or run a transparent screen over top of it so it looks as if you are interacting with different parts of the image.

 

I'm going to need a step-by-step walkthrough since I'm not all that familiar with the LabVIEW environment.

 

Thanks in advance!


Do you have a screen that large?

 

Where did the image come from?

 

I do not think you will need a transparent screen if you are using a Picture Control.

 

Ben

 

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 3
(2,385 Views)

@Lov3mydog wrote:

 

I am trying to import a jpg file into labview but it is too large (6625x5400). Any time I try to resize it using a program other than LabVIEW, the image gets distorted. How do I fix this? I know the program runs if I use a file size of 424x362.

 


The image is distorted because you're trying to resize it to a different aspect ratio. Diminish your image (keeping the aspect ratio) until the width is 362 and then crop the height. Personnaly I use Gimp to edit images.

 

Ben64 

Message 3 of 3
(2,380 Views)