Detecting multiframe GIF

Just starting out? Need help? Post your questions and find answers here.
User avatar
DeanH
Enthusiast
Enthusiast
Posts: 281
Joined: Wed May 07, 2008 4:57 am
Location: Adelaide, South Australia
Contact:

Detecting multiframe GIF

Post by DeanH »

I need to be able to detect if a GIF image file is multiframe or not, to avoid crashing when ResizeImage is used. Does anyone know how to do this?
User avatar
kenmo
Addict
Addict
Posts: 2054
Joined: Tue Dec 23, 2003 3:54 am

Re: Detecting multiframe GIF

Post by kenmo »

Does ImageFrameCount(Image) > 1 tell you what you need?
User avatar
DeanH
Enthusiast
Enthusiast
Posts: 281
Joined: Wed May 07, 2008 4:57 am
Location: Adelaide, South Australia
Contact:

Re: Detecting multiframe GIF

Post by DeanH »

Yes! That's perfect. I didn't know that function existed. I can check the count before trying a resize. Thank you!
Post Reply