LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to convert the pixels of a folder of PNG files in binary codeles

Solved!
Go to solution

Hi

I'm trying to convert the pixels of PNG file to binary code and i have to do it for a folder full of PNG files. For now my VI estracts the information of the PNG in a cluster and then convert the pixels to RGB to Color and then write them in binary. The problem is that it do it only for one path.

Is it possible do it automatically for all the PNG files in the folder?

0 Kudos
Message 1 of 7
(3,192 Views)

why you do not use loop for this one ?
for calling all png of one folder you can use list folder vi with pattern of .png and then you can use
file list output terminal of this vi for convert all png

0 Kudos
Message 2 of 7
(3,185 Views)
Solution
Accepted by topic author AppenzellerMann

If you Requirement is to do existing logic for all the .png Files inside a folder (List the .png FIles and Use build path to Frame a Array of path all the png Files and then Place your Existing Logic in a loop)

 

 

 

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 3 of 7
(3,184 Views)

Have you tried using the Recursive File List function to get all the png files in a folder?

Recursive file list.png

0 Kudos
Message 4 of 7
(3,169 Views)

Hi Greg

 

Recursive Function will work For taking the Files of Same category woth Full path.

To Make Very precise we can use pattern for Recursive function as *.png which will give only path for the file names with .png extension, which which avoid

get FIle Extension and Case to differentiate from other file extension

 

Kind Regards

palanivel Thiruvenkadam

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 5 of 7
(3,149 Views)

Thank you very much.

0 Kudos
Message 6 of 7
(3,142 Views)

For Better Understanding please find the attached Image

 

 

Kind Reagrds

palanivel Thiruvenkadam

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 7 of 7
(3,138 Views)