Page 1 of 1

Detecting multiframe GIF

Posted: Mon Oct 27, 2025 10:56 pm
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?

Re: Detecting multiframe GIF

Posted: Tue Oct 28, 2025 2:52 am
by kenmo
Does ImageFrameCount(Image) > 1 tell you what you need?

Re: Detecting multiframe GIF

Posted: Tue Oct 28, 2025 4:43 am
by DeanH
Yes! That's perfect. I didn't know that function existed. I can check the count before trying a resize. Thank you!