LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Controlling Gif aninimation

When I wish to use an animated GIF, I let windows do the busywork by creating the animated GIF using

http://www.blumentals.net/egifan/ and then importing it to the clipboard for using in a boolean or ring or whatever.  Gives me excellent<> control over sequencing, transparency, etc.

Message 21 of 41
(4,781 Views)

Mike...

I figured out it probably wasn't a problem with the size... i assumed size since the first few images that had a problem had relatively large dimensions. I still haven't found the exact cause but i believe the particular file i wanted to work with wasn't saved/formatted properly or wasn't exactly following the gif89a standards... in my opinion i think there was something wrong with the color pallete on the gif file.

Find attached two gif files in question...

I was able to get around the problem by uploading the image to www.online-image-editor.com and then resaving it. I noticed on there it said "Colors: Unknown" and even MATLAB reads the image wrongly (reads white 255 255 255 as 225 225 225).

 

All in all i'd say it works perfectly (maybe not forgiving) and is pretty fast at acquiring frames.

 

Tutu

Message Edited by adecold-tamu on 10-06-2008 11:40 AM
Download All
0 Kudos
Message 22 of 41
(4,738 Views)

In addition to the work already posted, there's a multi-image GIF writer on the forum here! (see posted LLB)

 

During the same time-frame, I wrote a multi-image reader as well (also available from OpenG) please let me know if there's any interest.

 

Cheers!

Message Edited by tbd on 10-22-2008 02:11 AM
"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
Message 23 of 41
(4,655 Views)

Hi Mike,

Thanks for the documentation and VI for read .gif files.

 

I tried  to use the VI ( i modify just the version from 89a to 87a)

 

here's what i got. just the upper part of the file.

0 Kudos
Message 24 of 41
(4,630 Views)

Hi cmdrb,

i don´t know what you changed, but the difference between 89a and 87a isn´t only the version number.

 

Mike

Message 25 of 41
(4,610 Views)

hi mike,

i attached the gif file which i want to view in a front panel.

i can view it full in any picture viewer, but if i use the vi, i can only view the upper part of it.

 

if its not the version will be change to accomodate 87a gif, then what else should be modified.

 

thanks in advance.

0 Kudos
Message 26 of 41
(4,597 Views)

Hi cmdrb,

i will check it tomorrow morning and send you the results. Smiley Wink

 

Mike

Message Edited by MikeS81 on 10-22-2008 08:46 PM
Message 27 of 41
(4,587 Views)

thanks Mike.

 

by the way, I am using LV8.2

 

 

0 Kudos
Message 28 of 41
(4,583 Views)

Hi cmdrb,

thanks for the immediately replay. Smiley Wink

 

BTW: tomorrow morning is for me in 11 hours.

 

Mike

Message Edited by MikeS81 on 10-22-2008 08:49 PM
Message 29 of 41
(4,579 Views)

Hi cmdrb,

i found the mistake, it was a type error, i have to convert the i16 numbers before the multiply operation. Please replace the attached vi. I will create a new version of the overall GIF vi´s in the next days and i will also integrate the 87a support. In your case it´s ok to block the version check.

 

Hope it helps.

Mike

 

 

Message Edited by MikeS81 on 10-23-2008 08:29 AM
Message 30 of 41
(4,556 Views)