From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to open and save pictures from 1 folder at the same time?

Is there a way to open and save pictures from 1 folder at the same time?
I'm creating a vi that resizes the picture but I want to do it with 1 folder at a time... Is this possible?

greetings!
0 Kudos
Message 1 of 5
(2,550 Views)
Use a file dialog to select a folder, then use "list folder" with your desired pattern (e.g. *.jpg). You get an array of all matching file names. Feed it into an autoindexing FOR loop to process all files.
 
Make sure you don't accidentally "process" and non-image files ;).
0 Kudos
Message 2 of 5
(2,546 Views)
Hi Kway,

Here you are. I wrote a file a customer times ago & It did what you want! Smiley Wink

Just see the attachements and keep me inform.

Regards,
Julien Roland - District Sales Manager
NI Belgium - Technical Support

Don't forget to rate a good answer
0 Kudos
Message 3 of 5
(2,523 Views)
I tried to open it but I don't have LV8.2 :s (I just have LV8.0)
0 Kudos
Message 4 of 5
(2,513 Views)
Here you are. I saved the files in version 8.0 of LabVIEW Smiley Happy
Julien Roland - District Sales Manager
NI Belgium - Technical Support

Don't forget to rate a good answer
0 Kudos
Message 5 of 5
(2,497 Views)