From 11:00 PM CDT Friday, May 10 – 02:30 PM CDT Saturday, May 11 (04:00 AM UTC – 07:30 PM UTC), 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: 

Programmatically turn folder of png files into gif

Hi, isf there is a way to turn a folder of png files (labelled 0-x in order) into a gif within labview?

 

I have searched around the topic and found that there are websites that can do this. I also came across recommendations for external programs that can do it (with a command sent to them through LabVIEW). 

 

I'd prefer to be able to do it internally on LabVIEW - any ideas?


Thanks!

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

Hello cna,

 

you can try the example in the last post

Pixelmap or image from 3D Control?

also interesting

How Do I Create an Animation Using a Picture Ring Control in LabVIEW?

best regards
Alexander
Message 2 of 7
(3,334 Views)

Hi , thanks for the reply.


In the first link I downloaded the exmaple llb but can't quite figure out what  is going on?


The second doesn't seem like it would suit my needs as it has a lot of labour.


To elaborate: I have my code getting and saving the image of a graph (iterating through files) to a folder. Currently I can then upload these files to a site and get an animated gif out of them. 

 

Cheers

0 Kudos
Message 3 of 7
(3,287 Views)

Hello cna,

 

the Util.Pic.GIF.Write.vi is the interesting VI here you can add the Option to load the png files

tsat.png

best regards
Alexander
Message 4 of 7
(3,277 Views)

Hi Duffy, thanks for pointing that out! I'll give it a go.

 

0 Kudos
Message 5 of 7
(3,269 Views)

Hmm,


I've got the library loaded in my project. But when I pass an array of image data to the main write VI, it gives an error that the first file should have a colour table or something along those lines?


Have you ever used the VI's and got a similar error?


I'll keep fiddling around in the meantime

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

Hello cna,

i have then tried this example which works

GIF Animations in LabVIEW

also in vi,lib:

vi.lib\picture\gif.llb\Write GIF File.vi

but it doesn't support animation.

best regards
Alexander
0 Kudos
Message 7 of 7
(3,235 Views)