Page 1 of 1

Loading Image Info and determin .GIF file type

Posted: Wed Oct 12, 2005 1:37 pm
by Pantcho!!
Hello.

i have this program which scans a directory for image files.
if i have more then 90 images the scanning takes sooooooooooo much time

especially when i need to check if the image is a reguler Gif image or Animated gif with the Movie() functions.

is there a fast way to scan imagesto receive resolution info + to know if a GIF is animated .... ?

Posted: Fri Oct 14, 2005 11:04 am
by Pantcho!!
Anyone? :?

Posted: Fri Oct 14, 2005 11:14 am
by KameHameHaaa
After checking the gif file structure, I've seen that the number of frames aren't stored somewhere. It's just a stream of frames, so you have to parse all the file until you reach the end...
Not sure will be faster than the Movie() command.

Posted: Fri Oct 14, 2005 4:29 pm
by Pantcho!!
Thank you for checking it i apperciate it alot!

if anyone got any other soltion , i am still waiting for your replys.

thank you.

Posted: Fri Oct 14, 2005 5:54 pm
by traumatic
There's no other solution AFAIK. It's like KameHameHaaa said,
the number of frames isn't stored inside the file.

Did you look at the file format descriptions for GIF89a on wotsit.org
or google?