I have a web page that displays
If that doesn't work out, I think you will have to do it server side. One tool that can do this is ImageMagick. However, that needs to be present on your server and PHP needs to be able to access it.
Command line usage:
convert 'image.gif' singleframe.gif
I'm sure PHP's ImageMagick extension can do this as well.